pytorch-openpose
pytorch-openpose copied to clipboard
numpy.AxisError: axis 1 is out of bounds for array of dimension 1
Traceback (most recent call last):
File "/home/moziaijason/pycode/detection/pytorch-openpose-master/src/hand.py", line 89, in
util.py
for peaks in all_hand_peaks: for ie, e in enumerate(edges): if np.sum(np.all(peaks[e], axis=1)==0)==0: print(peaks[e]) x1, y1 = peaks[e[0]] x2, y2 = peaks[e[1]] ax.plot([x1, x2], [y1, y2], color=matplotlib.colors.hsv_to_rgb([ie/float(len(edges)), 1.0, 1.0]))
当我运行hand.py的时候,出现上面的错误
@Jasonmes 怎么解决的
How to solve this problem? Did you find out the solution?