-
Notifications
You must be signed in to change notification settings - Fork 5k
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
This simple code while running causing me so much problem #5369
Comments
Hi @Karangautam870, After reviewing the code snippet you provided, it appears that you are using an legacy version of MediaPipe Hand Solution. We have recently launched enhanced MediaPipe Tasks APIs, which provide increased stability and functionality compared to the legacy version. We strongly advise migrating to these updated APIs for Hand landmarks, as we no longer support legacy solutions. You can find the documentation for the Hand Landmarker here and implementation guide for Python here. Unfortunately, aside from this, we won't be able to assist you much further. 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. |
`import mediapipe as mp cap = cv.VideoCapture(0) mphands = mp.solutions.hands while True:
cap.release() ConstantSidePacketCalculator: ; RET_CHECK failure (mediapipe/calculators/core/constant_side_packet_calculator.cc:64) (cc->OutputSidePackets().NumEntries(kPacketTag))==(options.packet_size())Number of output side packets has to be same as number of packets configured in options. I asked from chatgpt it is showing me this please help The error message you're encountering seems to be originating from the MediaPipe framework. Specifically, it's related to the configuration of a calculator, possibly the ConstantSidePacketCalculator or the SplitTensorVectorCalculator. The error message indicates that the number of output side packets doesn't match the number of packets configured in the options. This suggests there's a mismatch between the expected number of outputs and the actual number being produced by the calculator. To resolve this issue, you need to check the configuration of your calculator, ensuring that the number of output side packets matches the number specified in the options. You might want to review the documentation or source code of the calculators you're using to understand how they're configured and ensure they align correctly. |
Hi @Karangautam870, As suggested above, please migrate to our new Task API. If you encounter any further issues, let us know. Note that we will no longer support the legacy solution, Unfortunately, We will be not able to help you out on this. Thank you!! |
How to migrate like give me some links or steps to do this |
Hi @Karangautam870, You can find the documentation for the Hand Landmarker here and implementation guide for Python here. |
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. |
import mediapipe as mp
import cv2 as cv
import time
cap = cv.VideoCapture(0)
mphands = mp.solutions.hands
hands = mphands.Hands()
while True:
success,img = cap.read()
imgRGB = cv.cvtColor(img,cv.COLOR_BGR2RGB)
results = hands.process(imgRGB)
cv.imshow("Image",img)
i am trying to run this code but it is showing me this error
RuntimeError: ValidatedGraphConfig Initialization failed.
ImageToTensorCalculator: ; RET_CHECK failure (mediapipe/calculators/tensor/image_to_tensor_calculator.cc:144) ValidateOptionOutputDims(options) returned INTERNAL: ; RET_CHECK failure (./mediapipe/calculators/tensor/image_to_tensor_utils.h:136) options.has_output_tensor_float_range() || options.has_output_tensor_int_range() || options.has_output_tensor_uint_range()Output tensor range is required.
ConstantSidePacketCalculator: ; RET_CHECK failure (mediapipe/calculators/core/constant_side_packet_calculator.cc:64) (cc->OutputSidePackets().NumEntries(kPacketTag))==(options.packet_size())Number of output side packets has to be same as number of packets configured in options.
ConstantSidePacketCalculator: ; RET_CHECK failure (mediapipe/calculators/core/constant_side_packet_calculator.cc:64) (cc->OutputSidePackets().NumEntries(kPacketTag))==(options.packet_size())Number of output side packets has to be same as number of packets configured in options.
ImageToTensorCalculator: ; RET_CHECK failure (mediapipe/calculators/tensor/image_to_tensor_calculator.cc:144) ValidateOptionOutputDims(options) returned INTERNAL: ; RET_CHECK failure (./mediapipe/calculators/tensor/image_to_tensor_utils.h:136) options.has_output_tensor_float_range() || options.has_output_tensor_int_range() || options.has_output_tensor_uint_range()Output tensor range is required.
ConstantSidePacketCalculator: ; RET_CHECK failure (mediapipe/calculators/core/constant_side_packet_calculator.cc:64) (cc->OutputSidePackets().NumEntries(kPacketTag))==(options.packet_size())Number of output side packets has to be same as number of packets configured in options.
ConstantSidePacketCalculator: ; RET_CHECK failure (mediapipe/calculators/core/constant_side_packet_calculator.cc:64) (cc->OutputSidePackets().NumEntries(kPacketTag))==(options.packet_size())Number of output side packets has to be same as number of packets configured in options.
SplitTensorVectorCalculator: The number of output streams should match the number of ranges specified in the CalculatorOptions.
please help what should i do
The text was updated successfully, but these errors were encountered: