Code Monkey home page Code Monkey logo

blazepalm's Issues

Is the dataset available for access?

It's a great share. I have a question about dataset. How can we get the dataset hand landmarks. Could you share it if it is a public dataset?

Not working for detecting the hand.

Hi,

When I run the run_detector.py, I got the following errors:

Traceback (most recent call last):
File "C:\Users\nieshijie\Downloads\BlazePalm-master\BlazePalm-master\ML\run_detector.py", line 31, in
cropped_hand = frame[y:endy, x:endx]
TypeError: only integer tensors of a single element can be converted to an index

I modified line 25~30 and convert type from float to int. It seems that the detected bound box is wrong. Could you please check about that? Thanks.

the size of tflite

thank you for your great works!
I have a question about your work.

  1. why the size of tflite is different from media-pipe's one?

RuntimeError: expected scalar type Byte but found Float

Hello, I get this error when I ran run_detector.py,I want to know how to solve it

/home//zhouyan1/anaconda3/envs/gesture_recognition/bin/python /home/SENSETIME/zhouyan1/PycharmProjects/BlazePalm-master/ML/run_detector.py
Traceback (most recent call last):
File "/home//zhouyan1/PycharmProjects/BlazePalm-master/ML/run_detector.py", line 39, in
_, _, landmarks = hl(torch.from_numpy(cropped_hand).permute((2, 0, 1)).unsqueeze(0))
File "/home//zhouyan1/anaconda3/envs/gesture_recognition/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home//zhouyan1/PycharmProjects/BlazePalm-master/ML/handlandmarks.py", line 115, in forward
b1 = self.backbone1(x) # 64x64
File "/home//zhouyan1/anaconda3/envs/gesture_recognition/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home//zhouyan1/anaconda3/envs/gesture_recognition/lib/python3.9/site-packages/torch/nn/modules/container.py", line 141, in forward
input = module(input)
File "/home//zhouyan1/anaconda3/envs/gesture_recognition/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home//zhouyan1/anaconda3/envs/gesture_recognition/lib/python3.9/site-packages/torch/nn/modules/conv.py", line 446, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/home//zhouyan1/anaconda3/envs/gesture_recognition/lib/python3.9/site-packages/torch/nn/modules/conv.py", line 442, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,
RuntimeError: expected scalar type Byte but found Float

ValueError: operands could not be broadcast together with remapped shapes [original->remapped]: (2,2) and requested shape (3,2)

Hi,

  • Running run_detector.py program on Ubuntu 22.04.2 LTS.
  • Pytorch version is 2.0.1+cpu

Initially, I received this issue. I was able to fix that issue by following the solution mentioned in the issue.

Now, I am getting this error:

aravind@aravind-Latitude-E6420:ML$ python3 run_detector.py 
[W NNPACK.cpp:64] Could not initialize NNPACK! Reason: Unsupported hardware.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Traceback (most recent call last):
  File "/home/aravind/work/pp/machine_learning/BlazePalm/ML/run_detector.py", line 33, in <module>
    cropped_hand = np.pad(cropped_hand,
  File "<__array_function__ internals>", line 200, in pad
  File "/home/aravind/.local/lib/python3.10/site-packages/numpy/lib/arraypad.py", line 744, in pad
    pad_width = _as_pairs(pad_width, array.ndim, as_index=True)
  File "/home/aravind/.local/lib/python3.10/site-packages/numpy/lib/arraypad.py", line 518, in _as_pairs
    return np.broadcast_to(x, (ndim, 2)).tolist()
  File "<__array_function__ internals>", line 200, in broadcast_to
  File "/home/aravind/.local/lib/python3.10/site-packages/numpy/lib/stride_tricks.py", line 413, in broadcast_to
    return _broadcast_to(array, shape, subok=subok, readonly=True)
  File "/home/aravind/.local/lib/python3.10/site-packages/numpy/lib/stride_tricks.py", line 349, in _broadcast_to
    it = np.nditer(
ValueError: operands could not be broadcast together with remapped shapes [original->remapped]: (2,2)  and requested shape (3,2)

Please help.

Thank you,
Aravind.

Is the dataset available for access

It's a great share. I have a question about dataset. How can we get the dataset hand landmarks. Could you share it if it is a public dataset?

Problems of BlazePalm's recognition accuracy and operation performance

Hello, I tried to run BlazePalm on iPhone 7 and found 2 problems:

  1. The detection accuracy of BlackePalm for hand key points is worse than that of MediaPipe Hands, which sometimes leads to false recognition.
  2. MediaPipe Hands on iPhone 7 can run at a performance close to 30FPS, but BlackePalm seems to have less than 15FPS.
    Can the above problems be optimized? Is there a solution? be deeply grateful!
    IMG_0061
    IMG_0063

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.