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

Error using mediapipe when i click on start detection #179

Open
GiovanniH75 opened this issue Apr 20, 2024 · 0 comments
Open

Error using mediapipe when i click on start detection #179

GiovanniH75 opened this issue Apr 20, 2024 · 0 comments

Comments

@GiovanniH75
Copy link

GiovanniH75 commented Apr 20, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Open blender with sudo. with the command line sudo ./Blender
  2. Download the zip of this repository ( code > download zip)
  3. install the download file in blendard, unsing install add on and install depenbd
  4. Go to blender, click on mediapipe select webcan then click on start detection
    I have this error.

Error: Python: Traceback (most recent call last):
File "/var/root/Library/Application Support/Blender/4.1/scripts/addons/BlendArMocap/src/cgt_mediapipe/cgt_mp_detection_operator.py", line 192, in modal
data, _ = self.node_chain.update([], self.frame)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/root/Library/Application Support/Blender/4.1/scripts/addons/BlendArMocap/src/cgt_core/cgt_patterns/cgt_nodes.py", line 31, in update
data, frame = node.update(data, frame)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/root/Library/Application Support/Blender/4.1/scripts/addons/BlendArMocap/src/cgt_mediapipe/cgt_mp_core/mp_hand_detector.py", line 18, in update
with self.solution.Hands(
^^^^^^^^^^^^^^^^^^^^
File "/Users/giovannihicquel/.local/lib/python3.11/site-packages/mediapipe/python/solutions/hands.py", line 114, in init
super().init(
File "/Users/giovannihicquel/.local/lib/python3.11/site-packages/mediapipe/python/solution_base.py", line 248, in init
self._graph = calculator_graph.CalculatorGraph(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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.

da

Expected behavior
Expected open the web cam and get detected

Screenshots
da

Desktop (please complete the following information):

  • OS: [macos Sonoma 14.4.1]
  • Blender Version 4.1
  • BlendArMocap Version

Additional context
Add any other context about the problem here.

I try to install this repository on blender but i don't know the good way.
downloading zip file ?
git clone ?
other ways ?

Can i have the steps to install properly ?

Thanks you.

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant