Gy920 / segment-anything-2-real-time

Run Segment Anything Model 2 on a live video stream
Apache License 2.0
119 stars 19 forks source link

Usage without cuda #4

Open pelegShf opened 2 weeks ago

pelegShf commented 2 weeks ago

Hi! Is it possible to use without cuda?

jackwei86 commented 2 weeks ago

if u want to use intel openvino .FYI: https://github.com/zhg-SZPT/FastSAM_Awsome_Openvino

YoussefMohamedDiaa commented 2 weeks ago

same question about Cuda, could you kindly add support for non cuda users ?...the original sam2 installation could work without cuda...(but no Realtime as you know)

Gy920 commented 2 weeks ago

@YoussefMohamedDiaa I haven't used it in a non-CUDA (non-GPU ) environment, but I believe it should definitely work on CPUs and other environments. However, if you're using a CPU for inference, you might need to use an inference framework like OpenVINO (as @jackwei86 mentioned) or ONNX Runtime to ensure inference speed.