cgtinker / BlendArMocap

realtime motion tracking in blender using mediapipe and rigify
GNU General Public License v3.0
929 stars 112 forks source link

Error using mediapipe when i click on start detection #179

Open GiovanniH75 opened 7 months ago

GiovanniH75 commented 7 months ago

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_detectionoperator.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):

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