{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/the-segment-anything-model-sam-for-remote","title":"The Segment Anything Model (SAM) for Remote Sensing Applications: From Zero to One Shot","arxiv_id":"2306.16623","date":"2023-06-29","proceeding":null,"authors":["Lucas Prado Osco","Qiusheng Wu","Eduardo Lopes de Lemos","Wesley Nunes Gonçalves","Ana Paula Marques Ramos","Jonathan Li","José Marcato Junior"],"abstract":"Segmentation is an essential step for remote sensing image processing. This study aims to advance the application of the Segment Anything Model (SAM), an innovative image segmentation model by Meta AI, in the field of remote sensing image analysis. SAM is known for its exceptional generalization capabilities and zero-shot learning, making it a promising approach to processing aerial and orbital images from diverse geographical contexts. Our exploration involved testing SAM across multi-scale datasets using various input prompts, such as bounding boxes, individual points, and text descriptors. To enhance the model's performance, we implemented a novel automated technique that combines a text-prompt-derived general example with one-shot training. This adjustment resulted in an improvement in accuracy, underscoring SAM's potential for deployment in remote sensing imagery and reducing the need for manual annotation. Despite the limitations encountered with lower spatial resolution images, SAM exhibits promising adaptability to remote sensing data analysis. We recommend future research to enhance the model's proficiency through integration with supplementary fine-tuning techniques and other networks. Furthermore, we provide the open-source code of our modifications on online repositories, encouraging further and broader adaptations of SAM to the remote sensing domain.","url_abs":"https://arxiv.org/abs/2306.16623v2","url_pdf":"https://arxiv.org/pdf/2306.16623v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"the-segment-anything-model-sam-for-remote","repo_url":"https://github.com/opengeos/segment-geospatial","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"image-segmentation","task_name":"Image Segmentation"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"},{"task_slug":"zero-shot-learning","task_name":"Zero-Shot Learning"}],"methods":[{"method_slug":"sam","method_name":"SAM"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2306.16623","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2306.16623"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/opengeos/segment-geospatial","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":7},"by_repo_kind":{"official":{"samples":7,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"9272bb540b5a3d79","entry":"get_icon_path","repo":"opengeos/segment-geospatial","repo_kind":"official","path":"qgis-samgeo-plugin/resources.py","file_url":"https://github.com/opengeos/segment-geospatial/blob/HEAD/qgis-samgeo-plugin/resources.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9272bb540b5a3d79"}},{"code_sha256_prefix":"b30f662e6405e3c8","entry":"get_venv_pip_path","repo":"opengeos/segment-geospatial","repo_kind":"official","path":"qgis-samgeo-plugin/core/venv_manager.py","file_url":"https://github.com/opengeos/segment-geospatial/blob/HEAD/qgis-samgeo-plugin/core/venv_manager.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b30f662e6405e3c8"}},{"code_sha256_prefix":"bf2344982180ea9a","entry":"get_venv_python_path","repo":"opengeos/segment-geospatial","repo_kind":"official","path":"qgis-samgeo-plugin/core/venv_manager.py","file_url":"https://github.com/opengeos/segment-geospatial/blob/HEAD/qgis-samgeo-plugin/core/venv_manager.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bf2344982180ea9a"}},{"code_sha256_prefix":"8a3b4a2057fb6a95","entry":"get_venv_site_packages","repo":"opengeos/segment-geospatial","repo_kind":"official","path":"qgis-samgeo-plugin/core/venv_manager.py","file_url":"https://github.com/opengeos/segment-geospatial/blob/HEAD/qgis-samgeo-plugin/core/venv_manager.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8a3b4a2057fb6a95"}},{"code_sha256_prefix":"fe48a327eadd9dda","entry":"get_version_from_metadata","repo":"opengeos/segment-geospatial","repo_kind":"official","path":"package_plugin.py","file_url":"https://github.com/opengeos/segment-geospatial/blob/HEAD/package_plugin.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fe48a327eadd9dda"}},{"code_sha256_prefix":"d402e4d232f6f131","entry":"should_exclude_dir","repo":"opengeos/segment-geospatial","repo_kind":"official","path":"package_plugin.py","file_url":"https://github.com/opengeos/segment-geospatial/blob/HEAD/package_plugin.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d402e4d232f6f131"}},{"code_sha256_prefix":"6f793c7ce45104ba","entry":"should_exclude_file","repo":"opengeos/segment-geospatial","repo_kind":"official","path":"package_plugin.py","file_url":"https://github.com/opengeos/segment-geospatial/blob/HEAD/package_plugin.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6f793c7ce45104ba"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}