Closed KamiCalcium closed 3 years ago
Hi,
Great work!
When I try the 3D Skeleton Interactive Annotation using the pre-trained weights, the keyboard is not working correctly. 0-9 are fine, the figure shows the different selected limb when I click. However, arrow keyboards are not working:
Traceback (most recent call last): File "/anaconda3/envs/pytorch/lib/python3.6/site-packages/matplotlib/cbook/__init__.py", line 224, in process func(*args, **kwargs) File "annotate_3D.py", line 96, in press update_skeleton(angle_idx, event.key) File "annotate_3D.py", line 337, in update_skeleton update_global(angle_idx) File "annotate_3D.py", line 282, in update_global update_line(line_idx, parent_idx, child_idx) File "annotate_3D.py", line 265, in update_line lines[line_idx][0].set_3d_properties(z) File "/anaconda3/envs/pytorch/lib/python3.6/site-packages/mpl_toolkits/mplot3d/art3d.py", line 143, in set_3d_properties zs = np.broadcast_to(zs, xs.shape) AttributeError: 'list' object has no attribute 'shape'
up, down, right or left all shows the same error. I tried debug thru printing the (event.key) and it shows that the received keyboard is correct (i.e. printing up, down, left, right when I click the corresponding key).
Could you please take a look on this? Thanks a lot!
I'm working on this issue. The tools was tested on matplotlib 2.2.2 and is not working on matplotlib 3. Will let you know once I update the tool.
Hi,
Great work!
When I try the 3D Skeleton Interactive Annotation using the pre-trained weights, the keyboard is not working correctly. 0-9 are fine, the figure shows the different selected limb when I click. However, arrow keyboards are not working:
Traceback (most recent call last): File "/anaconda3/envs/pytorch/lib/python3.6/site-packages/matplotlib/cbook/__init__.py", line 224, in process func(*args, **kwargs) File "annotate_3D.py", line 96, in press update_skeleton(angle_idx, event.key) File "annotate_3D.py", line 337, in update_skeleton update_global(angle_idx) File "annotate_3D.py", line 282, in update_global update_line(line_idx, parent_idx, child_idx) File "annotate_3D.py", line 265, in update_line lines[line_idx][0].set_3d_properties(z) File "/anaconda3/envs/pytorch/lib/python3.6/site-packages/mpl_toolkits/mplot3d/art3d.py", line 143, in set_3d_properties zs = np.broadcast_to(zs, xs.shape) AttributeError: 'list' object has no attribute 'shape'
up, down, right or left all shows the same error. I tried debug thru printing the (event.key) and it shows that the received keyboard is correct (i.e. printing up, down, left, right when I click the corresponding key).
Could you please take a look on this? Thanks a lot!
Hi, I have fixed the version problem. You can pull the code and it should work fine. The tested environment is: numpy 1.19 + matplotlib 3.3.4 + scipy 1.5.2
Re-open this issue if the patch does not solve your problem.
Hi,
Thanks for fixing. Now the 3D annotation works. However, annotation for 2D annotations seem doesn't work either under matplotlib > 3. Could you please check and fix too? There's no respond after I click mouse. Only Q can exit. N, C, Z, and mouse click don't work at all.
Re-open this issue if the patch does not solve your problem.
I don't think I can re-open it if it was not me that closed it. Could you please re-open this issue?
Hi,
Thanks for fixing. Now the 3D annotation works. However, annotation for 2D annotations seem doesn't work either under matplotlib > 3. Could you please check and fix too? There's no respond after I click mouse. Only Q can exit. N, C, Z, and mouse click don't work at all.
I have fixed annotate_2d.py. It should work now.
Hi,
Great work!
When I try the 3D Skeleton Interactive Annotation using the pre-trained weights, the keyboard is not working correctly. 0-9 are fine, the figure shows the different selected limb when I click. However, arrow keyboards are not working:
up, down, right or left all shows the same error. I tried debug thru printing the (event.key) and it shows that the received keyboard is correct (i.e. printing up, down, left, right when I click the corresponding key).
Could you please take a look on this? Thanks a lot!