Grounded-Segment-Anything icon indicating copy to clipboard operation
Grounded-Segment-Anything copied to clipboard

TypeError: annotate() got an unexpected keyword argument'labels

Open xiaomage12138 opened this issue 1 year ago • 3 comments

If the error message "TypeError: annotate() got an unexpected keyword argument'labels'" is displayed, roll back the Supervision to the 0.7.0 version.

pip install supervision==0.7.0

xiaomage12138 avatar Jul 29 '24 11:07 xiaomage12138

I solved it with pip install supervision==0.21.0

Alex-Lord avatar Jul 30 '24 13:07 Alex-Lord

I solved it with pip install supervision==0.21.0

Very good. Thank you so much.

mm10811 avatar May 13 '25 00:05 mm10811

@Alex-Lord I install numpy 2.26 which is incompatible as modules are compiled with numpy version < 1. Did you face this issue? `A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.6 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2.`

Ahmaddimran avatar Jul 29 '25 03:07 Ahmaddimran