CVHub520 / X-AnyLabeling

Effortless data labeling with AI support from Segment Anything and other awesome models.
GNU General Public License v3.0
4.26k stars 484 forks source link

❌ Error in loading model: segment_anything_2_video with error: No module named 'sam2' #677

Closed weathon closed 1 month ago

weathon commented 1 month ago

Search before asking

X-AnyLabeling Component

No response

Bug

When I select SAM2, it says - ❌ Error in loading model: segment_anything_2_video with error: No module named 'sam2' I tried to install SAM but it conflict with the required version of python

Information

Application Information: {'App name': 'X-AnyLabeling', 'App version': '2.4.4', 'Device': 'CPU'}

System Information: {'CPU': 'x86_64', 'CUDA': None, 'GPU': '0, Quadro RTX 3000, 6144', 'Operating System': 'Linux-5.15.0-117-generic-x86_64-with-glibc2.31', 'Python Version': '3.9.20'}

Package Information: {'ONNX Runtime GPU Version': '1.19.2', 'ONNX Runtime Version': '1.19.2', 'ONNX Version': '1.17.0', 'OpenCV Contrib Python Headless Version': '4.10.0.84', 'PyQt5 Version': '5.15.7'} (x-anylabeling)

Link to a Reproducible Demonstration Video

No video needed

Execution Mode

Source Code

Additional

No response

Are you willing to submit a PR?

weathon commented 1 month ago

Solved based on https://github.com/CVHub520/X-AnyLabeling/blob/main/examples/interactive_video_object_segmentation/README.md