{"id":81895,"date":"2023-07-21T14:11:22","date_gmt":"2023-07-21T06:11:22","guid":{"rendered":"https:\/\/www.seeedstudio.com\/blog\/?p=81895"},"modified":"2023-09-08T10:00:32","modified_gmt":"2023-09-08T02:00:32","slug":"what-is-fast-sam-how-to-segment-anything-on-the-edge","status":"publish","type":"post","link":"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/","title":{"rendered":"What is FastSAM: How to Segment Anything on the Edge?"},"content":{"rendered":"\n<p>FastSAM was born to tackle the issue of the substantial computational resource requirements associated with heavy Transformer(ViT) models. By harnessing the power of the <strong>lightweight CNN model<\/strong>, FastSAM becomes a more effective method rather than SAM, capable of segmenting any object in an image under the guidance of user interactive prompts, all in <strong>real-time<\/strong> and much faster!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introducing SAM and Beyond<\/h2>\n\n\n\n<p>Compared with traditional dataset labeling and collection methods, which require lots of resources and time to retrain the model once the dataset has been changed, SAM stands out as a fully automatic cued image segmentation model that can cut out almost anything from an image. Being trained on 11 million images and 1.1 billion segmentation masks, SAM is capable of generating or retrieving masks for specific objects in an image based on points\/text prompts.<\/p>\n\n\n\n<p>FastSAM goes beyond that. It converts the task into an instance segmentation task, using only 1\/50 of the <a href=\"https:\/\/ai.meta.com\/datasets\/segment-anything\/?ref=blog.roboflow.com\">SA-1B dataset<\/a> published by Meta AI, and finally achieves <strong>50 times faster<\/strong> runtimes while achieving comparable accuracy to SAM.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"438\" height=\"290\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/WeChatWorkScreenshot_dcc30a0b-9438-4794-b88f-68ce25167f51.png\" alt=\"\" class=\"wp-image-82018\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/WeChatWorkScreenshot_dcc30a0b-9438-4794-b88f-68ce25167f51.png 438w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/WeChatWorkScreenshot_dcc30a0b-9438-4794-b88f-68ce25167f51-300x199.png 300w\" sizes=\"(max-width: 438px) 100vw, 438px\" \/><figcaption class=\"wp-element-caption\">Image from <a href=\"https:\/\/arxiv.org\/pdf\/2306.12156.pdf\">Fast Segment Anything paper<\/a><\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Two Stages for FastSAM<\/h2>\n\n\n\n<p>Break down FastSAM into two stages: All-instance Segmentation (AIS) and Prompt-guided Selection (PGS). The first one is the basic method to segment all objects or regions in one image, and the second one is task-oriented post-processing, helping to identify the specific object of interest.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ALL-instance Segmentation<\/h3>\n\n\n\n<p>The first stage uses <strong>YOLOv8-seg<\/strong> to produce the <strong>segmentation masks<\/strong> of all instances in the image.<\/p>\n\n\n\n<p>YOLOv8\u2019s backbone network and neck module substitute YOLOv5\u2019s C3 module with the C2f module. The updated Head module embraces a decoupled structure, separating classification and detection heads, and shifts from Anchor-Based to Anchor-Free.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.png\" alt=\"\" class=\"wp-image-82103\" width=\"480\" height=\"320\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.png 960w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8-300x200.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8-768x512.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8-675x450.png 675w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><figcaption class=\"wp-element-caption\">Segment all objects in the view<\/figcaption><\/figure><\/div>\n\n\n<p>YOLOv8-seg applies YOLACT principles for instance segmentation. It begins with feature extraction from an image via a backbone network and the Feature Pyramid Network (FPN), integrating diverse-size features. The output consists of the detection and segmentation branches.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Prompt-guided Selection<\/h3>\n\n\n\n<p>In the second stage, it outputs the <strong>region-of-interest<\/strong> corresponding to the prompt. Here are three methods:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/WeChatWorkScreenshot_d5dd2bb0-fcda-4f2b-a4f0-e668b75618b9-1030x268.png\" alt=\"\" class=\"wp-image-82029\" width=\"515\" height=\"134\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/WeChatWorkScreenshot_d5dd2bb0-fcda-4f2b-a4f0-e668b75618b9-1030x268.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/WeChatWorkScreenshot_d5dd2bb0-fcda-4f2b-a4f0-e668b75618b9-300x78.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/WeChatWorkScreenshot_d5dd2bb0-fcda-4f2b-a4f0-e668b75618b9-768x200.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/WeChatWorkScreenshot_d5dd2bb0-fcda-4f2b-a4f0-e668b75618b9-1024x266.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/WeChatWorkScreenshot_d5dd2bb0-fcda-4f2b-a4f0-e668b75618b9.png 1384w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><figcaption class=\"wp-element-caption\">Image from <a href=\"https:\/\/arxiv.org\/pdf\/2306.12156.pdf\">Fast Segment Anything paper<\/a><\/figcaption><\/figure><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Point prompts:\n<ul class=\"wp-block-list\">\n<li>Employ foreground\/background points as the prompt<\/li>\n\n\n\n<li>To avoid errors that one foreground point could be located in multiple masks, background points can be utilized to identify masks that are relevant to the task<\/li>\n\n\n\n<li>Merge multiple masks within the region of interest into a single mask, in order to completely mark the object of interest<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Box prompts\n<ul class=\"wp-block-list\">\n<li>Perform Intersection over Union (IoU) matching between the selected box and the bounding boxes to the various masks from the first phase<\/li>\n\n\n\n<li>Select the object of interest based on the highest IoU score of mask identification<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Text prompts\n<ul class=\"wp-block-list\">\n<li>Leverage the CLIP model to extract corresponding text embeddings, which represent intrinsic features matched with each mask<\/li>\n\n\n\n<li>Select the mask with the highest similarity score to the image embeddings of the text prompt <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/7.png\" alt=\"\" class=\"wp-image-82102\" width=\"480\" height=\"320\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/7.png 960w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/7-300x200.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/7-768x512.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/7-675x450.png 675w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><figcaption class=\"wp-element-caption\">Mask the object of interest through point-prompt<\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Application Scenarios in Real World<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Anomaly Detection<\/h3>\n\n\n\n<p>This is normally used to complete sample defect-detecting tasks in a wide range of industrial scenarios, such as manufacturing quality control, predictive maintenance for IoT machines\/devices, vital health signs monitoring, and unusual behavior detection in video analytics.<\/p>\n\n\n\n<p> FastSAM can segment the exact defective regions based on foreground\/background points\/box prompt selection, but it&#8217;ll achieve a lower precision rather than SAM under mask everything mode.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Salient object Segmentation<\/h3>\n\n\n\n<p>This method aims to identify and isolate the most visually distinct and relevant objects within an image\/video, capable of handling multiple visual perception scenarios, including behavior analysis in psychology and eye-tracking studies, interact enhancement in Augmented Reality, important anatomical structures isolation in diagnostics, and bio-feature extraction for security management. <\/p>\n\n\n\n<p>FastSAM shows a similar performance with SAM, with only minor details lost at the edges of the object. Another limitation is that the FastSAM-box prompt can not select multiple objects with a single box, even SAM-box is currently not possible to achieve.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Building Extracting<\/h3>\n\n\n\n<p>This will benefit various industries and contribute to the efficient management and development of urban areas and infrastructure. Usually, we see it playing a key role in city planning, navigation system improvement, network coverage optimization, public transportation planning, and land use\/crop management. <\/p>\n\n\n\n<p>FastSAM shows great results in identifying one building from the others, but fewer regions related to shadows can be detected compared with SAM. However, while using the FastSAM- point prompt in the region of shadows, it&#8217;ll still get the correct result combing with the original building object, which indicated that FastSAM performs great when dealing with resisting the effects of the noise.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to get started with FastSAM <\/h2>\n\n\n\n<p>Check out Ultralytics&#8217; FastSAM docs for integrating the model into your Python application, where you&#8217;ll see two options: the <a href=\"https:\/\/github.com\/CASIA-IVA-Lab\/FastSAM\">official FastSAM Github repo<\/a>, and <a href=\"https:\/\/docs.ultralytics.com\/models\/fast-sam\/#key-features\">Ultralytics Python API<\/a> to streamline this process.<\/p>\n\n\n\n<p>Tips for you! Here&#8217;s a quick tour from our AE Youjiang to show you the FastSAM building extraction demo from the video input with <a href=\"https:\/\/www.seeedstudio.com\/reComputer-J4011-p-5585.html?queryID=daec09e3c02c63f4f82cd7d11df13d39&amp;objectID=5585&amp;indexName=bazaar_retailer_products\">reComputer J4011<\/a> powered by NVIDIA Jetson Orin NX:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/files.seeedstudio.com\/wiki\/GIF\/building-v2.gif\" alt=\"\"\/><\/figure><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Install Jetpack OS into reComputer device<\/li>\n\n\n\n<li>Clone the FastSAM repo and install the CLIP model, PyTorch, and Torchvision&nbsp;<\/li>\n\n\n\n<li>Clone Youjiang&#8217;s repo to get <a href=\"https:\/\/github.com\/yuyoujiang\/FastSAM-with-video-on-NVIDIA-Jetson\/blob\/main\/Inference_video.py\">Inference.video.py<\/a> file, which should be added to the branch of the <a href=\"https:\/\/github.com\/CASIA-IVA-Lab\/FastSAM\">FastSAM repo<\/a> next to the original Inference.py<\/li>\n\n\n\n<li>Use the <a href=\"https:\/\/github.com\/CASIA-IVA-Lab\/FastSAM#model-checkpoints\">pre-trained PyTorch model <\/a>for inferencing on the Jetson device.\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/CASIA-IVA-Lab\/FastSAM#model-checkpoints\">Download<\/a> model weights in PyTorch format<\/li>\n\n\n\n<li>Create a new Python script and enter the following code. Save and execute the file<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>from ultralytics import YOLO\n\n\nmodel = YOLO('FastSAM-s.pt')  # load a custom trained\n# TensorRT FP32 export\n# model.export(format='engine', device='0', imgsz=640)\n# TensorRT FP16 export\nmodel.export(format='engine', device='0', imgsz=640, half=True)<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Then, time to run the demo! <\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>#For Video\npython3 Inference_video.py --model_path &lt;path to model&gt; --input_path &lt;path to input video&gt; --imgsz 640<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#For Webcam\npython3 Inference_video.py --model_path &lt;path to model&gt; --input_path &lt;id of camera&gt; --imgsz 640<\/code><\/pre>\n\n\n\n<p>Check out the full steps from <a href=\"https:\/\/github.com\/yuyoujiang\/FastSAM-with-video-on-NVIDIA-Jetson\/tree\/main\">Youjiang&#8217;s GitHub<\/a> to try by yourself.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Why <a href=\"https:\/\/www.seeedstudio.com\/reComputer-J4011-p-5585.html?queryID=daec09e3c02c63f4f82cd7d11df13d39&amp;objectID=5585&amp;indexName=bazaar_retailer_products\">reComputer<\/a><\/h3>\n\n\n\n<p><a href=\"https:\/\/www.seeedstudio.com\/reComputer-J4011-p-5585.html?queryID=daec09e3c02c63f4f82cd7d11df13d39&amp;objectID=5585&amp;indexName=bazaar_retailer_products\">reComputer J4011<\/a> with NVIDIA Jetson Orin NX 8GB module delivers up to 70 TOPS of AI performance to the edge, featuring a rich set of IOs including USB 3.2 ports(4x), HDMI 2.1, M.2 key E for WIFI, M.2 Key M for SSD, RTC, CAN, Raspberry Pi GPIO 40-pin and more. It is also equipped with an aluminum case, a cooling fan with a heatsink, and a pre-installed JetPack 5.1.1 System. Perfect choice to deploy for edge AI solution providers working in video analytics, object detection, natural language processing, medical imaging, and robotics across industries of smart cities, security, industrial automation, and smart factories. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.seeedstudio.com\/reComputer-J4011-p-5585.html?queryID=daec09e3c02c63f4f82cd7d11df13d39&amp;objectID=5585&amp;indexName=bazaar_retailer_products\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/reComputer-Jetson-H0-\u7cfb\u5217-1030x610.png\" alt=\"\" class=\"wp-image-82010\" width=\"515\" height=\"305\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/reComputer-Jetson-H0-\u7cfb\u5217-1030x610.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/reComputer-Jetson-H0-\u7cfb\u5217-300x178.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/reComputer-Jetson-H0-\u7cfb\u5217-768x455.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/reComputer-Jetson-H0-\u7cfb\u5217-1536x910.png 1536w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/reComputer-Jetson-H0-\u7cfb\u5217-2048x1214.png 2048w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/reComputer-Jetson-H0-\u7cfb\u5217-1024x607.png 1024w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/a><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">Seeed&nbsp;NVIDIA&nbsp;Jetson Ecosystem<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/08\/nvidia-elite-partner-badge-rgb-for-screen.jpg\" alt=\"\" class=\"wp-image-82789\" width=\"233\" height=\"109\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/08\/nvidia-elite-partner-badge-rgb-for-screen.jpg 465w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/08\/nvidia-elite-partner-badge-rgb-for-screen-300x140.jpg 300w\" sizes=\"(max-width: 233px) 100vw, 233px\" \/><\/figure><\/div>\n\n\n<p>Seeed is an Elite partner for edge AI in the&nbsp;<a href=\"https:\/\/www.nvidia.com\/en-us\/about-nvidia\/partners\/\">NVIDIA Partner Network<\/a>. Explore more carrier boards, full system devices, customization services, use cases, and developer tools on&nbsp;<a href=\"https:\/\/www.seeedstudio.com\/nvidia-jetson.html\">Seeed\u2019s&nbsp;NVIDIA Jetson ecosystem<\/a>&nbsp;page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/09\/WeChatWorkScreenshot_0fa3f479-5b1c-4e23-9896-b989d6bde69c-3-1030x599.png\" alt=\"\" class=\"wp-image-84528\" width=\"773\" height=\"449\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/09\/WeChatWorkScreenshot_0fa3f479-5b1c-4e23-9896-b989d6bde69c-3-1030x599.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/09\/WeChatWorkScreenshot_0fa3f479-5b1c-4e23-9896-b989d6bde69c-3-300x174.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/09\/WeChatWorkScreenshot_0fa3f479-5b1c-4e23-9896-b989d6bde69c-3-768x446.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/09\/WeChatWorkScreenshot_0fa3f479-5b1c-4e23-9896-b989d6bde69c-3-1536x893.png 1536w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/09\/WeChatWorkScreenshot_0fa3f479-5b1c-4e23-9896-b989d6bde69c-3-1024x595.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/09\/WeChatWorkScreenshot_0fa3f479-5b1c-4e23-9896-b989d6bde69c-3.png 1958w\" sizes=\"(max-width: 773px) 100vw, 773px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<ul class=\"wp-block-list\">\n<li>Join the forefront of AI innovation with us! Harness the power of cutting-edge hardware and technology to revolutionize the deployment of machine learning in the real world across industries. Be a part of our mission to provide developers and enterprises with the best ML solutions available.<\/li>\n\n\n\n<li>Take the first step and send us an email at&nbsp;<a href=\"mailto:edgeai@seeed.cc\">edgeai@seeed.cc<\/a>&nbsp;to become a part of this exciting journey!&nbsp;Explore our latest <a href=\"https:\/\/files.seeedstudio.com\/wiki\/NVIDIA\/NVIDIA_Jetson_example-Success_cases_and_examples_with_NVIDIA_Jetson.pdf\">success stories<\/a> to find the right solution in your industry!<\/li>\n\n\n\n<li>Download our latest&nbsp;<a href=\"https:\/\/files.seeedstudio.com\/wiki\/Seeed_Jetson\/Seeed-NVIDIA_Jetson_Catalog_V1.4.pdf\">Jetson Catalog<\/a>&nbsp;to find one option that suits you well. If you can\u2019t find the off-the-shelf Jetson hardware solution for your needs, please check out our&nbsp;<a href=\"https:\/\/www.seeedstudio.com\/odm\">customization services<\/a>, and submit a new product inquiry to us at&nbsp;odm@seeed.cc&nbsp;for evaluation.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Reference<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Fast Segment Anything paper, from Xu Zhao, Wenchao Ding, Yongqi An, Yinglong Du, Tao Yu, Min Li, Ming Tang, and Jinqiao Wang: https:\/\/arxiv.org\/pdf\/2306.12156.pdf<\/li>\n\n\n\n<li>What is Segment Anything Model (SAM)? A Breakdown, from Jacob Solawetz: https:\/\/blog.roboflow.com\/segment-anything-breakdown\/<\/li>\n\n\n\n<li>Paper Review: Fast Segment Anything, from Andrew Lukyanenko: https:\/\/artgor.medium.com\/paper-review-fast-segment-anything-912d198557ca<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>FastSAM was born to tackle the issue of the substantial computational resource requirements associated with<\/p>\n","protected":false},"author":3606,"featured_media":82039,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"iawp_total_views":0,"footnotes":""},"categories":[1,4393],"tags":[3254,2799,304,1312,1824,4520],"class_list":["post-81895","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","category-tech","tag-computer-vision","tag-edge-ai","tag-iot","tag-nvidia","tag-nvidia-jetson","tag-yolov8"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is FastSAM: How to Segment Anything on the Edge? - Latest News from Seeed Studio<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is FastSAM: How to Segment Anything on the Edge? - Latest News from Seeed Studio\" \/>\n<meta property=\"og:description\" content=\"FastSAM was born to tackle the issue of the substantial computational resource requirements associated with\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/\" \/>\n<meta property=\"og:site_name\" content=\"Latest News from Seeed Studio\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-21T06:11:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-08T02:00:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jennie Wang\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jennie Wang\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/\",\"name\":\"What is FastSAM: How to Segment Anything on the Edge? - Latest News from Seeed Studio\",\"isPartOf\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.jpg\",\"datePublished\":\"2023-07-21T06:11:22+00:00\",\"dateModified\":\"2023-09-08T02:00:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/21041ae3908bbb4d44533f2b3b115fd1\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/#primaryimage\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.jpg\",\"contentUrl\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.jpg\",\"width\":1200,\"height\":628},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.seeedstudio.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is FastSAM: How to Segment Anything on the Edge?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/\",\"name\":\"Latest News from Seeed Studio\",\"description\":\"Emerging IoT, AI and Autonomous Applications on the Edge\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/21041ae3908bbb4d44533f2b3b115fd1\",\"name\":\"Jennie Wang\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b8fdf0c9ad5c32ab4f3981bb35a10566?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b8fdf0c9ad5c32ab4f3981bb35a10566?s=96&r=g\",\"caption\":\"Jennie Wang\"},\"description\":\"Seeed Studio AIoT Marketing and Partnership Always coffee always alive \u2615\ufe0f\",\"sameAs\":[\"www.linkedin.com\/in\/jialinwang1215\"],\"url\":\"https:\/\/www.seeedstudio.com\/blog\/author\/jennie-wang\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is FastSAM: How to Segment Anything on the Edge? - Latest News from Seeed Studio","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/","og_locale":"en_US","og_type":"article","og_title":"What is FastSAM: How to Segment Anything on the Edge? - Latest News from Seeed Studio","og_description":"FastSAM was born to tackle the issue of the substantial computational resource requirements associated with","og_url":"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/","og_site_name":"Latest News from Seeed Studio","article_published_time":"2023-07-21T06:11:22+00:00","article_modified_time":"2023-09-08T02:00:32+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.jpg","type":"image\/jpeg"}],"author":"Jennie Wang","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jennie Wang","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/","url":"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/","name":"What is FastSAM: How to Segment Anything on the Edge? - Latest News from Seeed Studio","isPartOf":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/#primaryimage"},"image":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/#primaryimage"},"thumbnailUrl":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.jpg","datePublished":"2023-07-21T06:11:22+00:00","dateModified":"2023-09-08T02:00:32+00:00","author":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/21041ae3908bbb4d44533f2b3b115fd1"},"breadcrumb":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/#primaryimage","url":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.jpg","contentUrl":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.jpg","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/www.seeedstudio.com\/blog\/2023\/07\/21\/what-is-fast-sam-how-to-segment-anything-on-the-edge\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.seeedstudio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"What is FastSAM: How to Segment Anything on the Edge?"}]},{"@type":"WebSite","@id":"https:\/\/www.seeedstudio.com\/blog\/#website","url":"https:\/\/www.seeedstudio.com\/blog\/","name":"Latest News from Seeed Studio","description":"Emerging IoT, AI and Autonomous Applications on the Edge","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/21041ae3908bbb4d44533f2b3b115fd1","name":"Jennie Wang","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b8fdf0c9ad5c32ab4f3981bb35a10566?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b8fdf0c9ad5c32ab4f3981bb35a10566?s=96&r=g","caption":"Jennie Wang"},"description":"Seeed Studio AIoT Marketing and Partnership Always coffee always alive \u2615\ufe0f","sameAs":["www.linkedin.com\/in\/jialinwang1215"],"url":"https:\/\/www.seeedstudio.com\/blog\/author\/jennie-wang\/"}]}},"modified_by":"Jennie Wang","views":25939,"featured_image_urls":{"full":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.jpg",1200,628,false],"thumbnail":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8-80x80.jpg",80,80,true],"medium":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8-300x157.jpg",300,157,true],"medium_large":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8-768x402.jpg",640,335,true],"large":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8-1030x539.jpg",640,335,true],"1536x1536":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.jpg",1200,628,false],"2048x2048":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.jpg",1200,628,false],"visody_icon":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.jpg",32,17,false],"magazine-7-slider-full":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8.jpg",1200,628,false],"magazine-7-slider-center":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8-936x628.jpg",936,628,true],"magazine-7-featured":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8-1024x536.jpg",1024,536,true],"magazine-7-medium":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8-720x380.jpg",720,380,true],"magazine-7-medium-square":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2023\/07\/8-675x450.jpg",675,450,true]},"author_info":{"display_name":"Jennie Wang","author_link":"https:\/\/www.seeedstudio.com\/blog\/author\/jennie-wang\/"},"category_info":"<a href=\"https:\/\/www.seeedstudio.com\/blog\/category\/news\/\" rel=\"category tag\">News<\/a> <a href=\"https:\/\/www.seeedstudio.com\/blog\/category\/tech\/\" rel=\"category tag\">Tech<\/a>","tag_info":"Tech","comment_count":"0","_links":{"self":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/81895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/users\/3606"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/comments?post=81895"}],"version-history":[{"count":34,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/81895\/revisions"}],"predecessor-version":[{"id":84531,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/81895\/revisions\/84531"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media\/82039"}],"wp:attachment":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media?parent=81895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/categories?post=81895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/tags?post=81895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}