{"id":20685450,"url":"https://github.com/yas-sim/openvino-segment-anything-interactive-demo","last_synced_at":"2025-04-22T13:39:38.274Z","repository":{"id":223272614,"uuid":"759771924","full_name":"yas-sim/openvino-segment-anything-interactive-demo","owner":"yas-sim","description":"Segment Anything Model (SAM) interactive demo with OpenVINO","archived":false,"fork":false,"pushed_at":"2024-06-05T10:23:18.000Z","size":20718,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T15:34:42.729Z","etag":null,"topics":["cpu","demo","efficientsam","interactive","openvino","python","sam","segment-anything","segment-anything-model","segmentation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yas-sim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-19T09:59:40.000Z","updated_at":"2025-03-11T06:01:15.000Z","dependencies_parsed_at":"2024-11-16T22:38:35.354Z","dependency_job_id":null,"html_url":"https://github.com/yas-sim/openvino-segment-anything-interactive-demo","commit_stats":null,"previous_names":["yas-sim/openvino-segment-anything-interactive-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Fopenvino-segment-anything-interactive-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Fopenvino-segment-anything-interactive-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Fopenvino-segment-anything-interactive-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Fopenvino-segment-anything-interactive-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yas-sim","download_url":"https://codeload.github.com/yas-sim/openvino-segment-anything-interactive-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250250044,"owners_count":21399575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpu","demo","efficientsam","interactive","openvino","python","sam","segment-anything","segment-anything-model","segmentation"],"created_at":"2024-11-16T22:27:26.285Z","updated_at":"2025-04-22T13:39:38.253Z","avatar_url":"https://github.com/yas-sim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Segment Anything Model (SAM) interactive demo with OpenVINO\r\n\r\n## Description\r\nThis demo takes an image file and runs a SAM model using OpenVINO.  \r\nYou can point to the input image with the mouse, and the demo program shows the segmentation result on the image.  \r\nThis demo supports following models from [yformer/EfficientSAM GitHub repo](https://github.com/yformer/EfficientSAM.git):\r\n- efficient-sam-vitt\r\n- efficient-sam-vits\r\n\r\n## Programs / Files\r\n|#|File name|Description|\r\n|---|---|---|\r\n|1|download_and_convert.py|Clone the EfficientSAM GitHub repo and convert the model into OpenVINO IR model.|\r\n|2|efficientsam.py|Run the EfficientSAM interactive demo with OpenVINO|\r\n\r\n\r\n## How to run\r\n\r\n1. Install prerequisites\r\n\r\n```sh\r\npython -m venv venv\r\nvenv/Scripts/activate\r\npython -m pip install -U pip\r\npip install -U setuptools wheel\r\npip install -r requirements.txt\r\n```\r\n\r\n2. Download the model\r\n```sh\r\npython download_and_convert.py\r\n```\r\n\r\n3. Run the demo\r\nPoint and click on the image to kick inferencing.\r\n```sh\r\npython efficientsam.py\r\n  or\r\npython efficientsam.py -i \u003cimage_file_name\u003e\r\n```\r\n\r\nCommand line options:\r\n```sh\r\noptions:\r\n  -h, --help            show this help message and exit\r\n  -i INPUT, --input INPUT\r\n                        Path to an input image file\r\n  -n NUM_POINTS, --num_points NUM_POINTS\r\n                        Number of points for an inference (default:1)\r\n  -f, --full_screen     Full screen mode\r\n```\r\n## Demo  \r\n`python .\\efficientsam.py -i .\\trolley.jpg -n 3 -f`\r\n![demo](./resources/demo2.gif)\r\n\r\n## Test environment  \r\n- Windows 11\r\n- Python 3.10.3\r\n- OpenVINO 2023.3.0\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyas-sim%2Fopenvino-segment-anything-interactive-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyas-sim%2Fopenvino-segment-anything-interactive-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyas-sim%2Fopenvino-segment-anything-interactive-demo/lists"}