label-studio-ml-backend
label-studio-ml-backend copied to clipboard
When setting up the segment_anything_2_video environment, an error occurred, preventing the normal activation of label-studio-ml
I want to use segment_anything_2_video in conjunction with label-studio for video annotation, but when I run label-studio-ml start .\segment_anything_2_video in the directory C:\Users\Admin\label-studio-ml-backend\label_studio_ml\examples, the following error occurs:
**Traceback (most recent call last): File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\hydra_internal\instantiate_instantiate2.py", line 92, in _call_target return target(*args, **kwargs) File "C:\Users\Admin\label-studio-ml-backend\label_studio_ml\sam2\sam2\sam2_video_predictor.py", line 36, in init super().init(**kwargs) TypeError: SAM2Base.init() missing 3 required positional arguments: 'image_encoder', 'memory_attention', and 'memory_encoder'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Admin\label-studio-ml-backend\label_studio_ml\examples\segment_anything_2_video_wsgi.py", line 33, in
I have been trying for a while. Has anyone encountered the same issue? I need assistance. Thank you very much.
Path to execute SAM2 : C:\Users\Admin\label-studio-ml-backend\label_studio_ml\examples\segment_anything_2_video Installation path for SAM 2.1 development kit : C:\Users\Admin\label-studio-ml-backend\label_studio_ml\sam2