{"id":14982,"date":"2023-04-25T21:49:20","date_gmt":"2023-04-25T13:49:20","guid":{"rendered":"http:\/\/139.9.1.231\/?p=14982"},"modified":"2023-04-25T21:49:21","modified_gmt":"2023-04-25T13:49:21","slug":"inpaint-anything-segment-anything-meets-image-inpainting","status":"publish","type":"post","link":"http:\/\/139.9.1.231\/index.php\/2023\/04\/25\/inpaint-anything-segment-anything-meets-image-inpainting\/","title":{"rendered":"Inpaint Anything: Segment Anything Meets Image Inpainting"},"content":{"rendered":"\n<ul><li>\u8bba\u6587\u94fe\u63a5\uff1ahttp:\/\/arxiv.org\/abs\/2304.06790<\/li><li>\u4ee3\u7801\u5e93\u94fe\u63a5\uff1ahttps:\/\/github.com\/geekyutao\/Inpaint-Anything<\/li><\/ul>\n\n\n\n<p>     4 \u6708\u521d\uff0cMeta \u53d1\u5e03\u4e86\u53f2\u4e0a\u9996\u4e2a\u56fe\u50cf\u5206\u5272\u57fa\u7840\u6a21\u578b&#8211;SAM\uff08Segment Anything Model\uff09\u3002\u4f5c\u4e3a\u5206\u5272\u6a21\u578b\uff0cSAM \u7684\u80fd\u529b\u5f3a\u5927\uff0c\u64cd\u4f5c\u4f7f\u7528\u65b9\u5f0f\u4e5f\u5341\u5206\u53cb\u597d\uff0c\u6bd4\u5982\u7528\u6237\u7b80\u5355\u5730\u70b9\u51fb\u6765\u9009\u62e9\u5bf9\u5e94\u7269\u4f53\uff0c\u7269\u4f53\u5c31\u4f1a\u7acb\u5373\u88ab\u5206\u5272\u51fa\u6765\uff0c\u4e14\u5206\u5272\u7ed3\u679c\u5341\u5206\u7cbe\u51c6\u3002\u622a\u81f3 4 \u6708 15 \u53f7\uff0cSAM \u7684 GitHub \u4ed3\u5e93\u7684 Star \u6570\u9ad8\u8fbe 26k\u3002<\/p>\n\n\n\n<p>    \u5982\u4f55\u5229\u7528\u597d\u5982\u6b64\u5f3a\u5927\u7684\u300c\u5206\u5272\u4e00\u5207\u300d\u6a21\u578b\uff0c\u5e76\u62d3\u5c55\u5230\u66f4\u52a0\u6709\u5b9e\u9645\u9700\u6c42\u7684\u5e94\u7528\u573a\u666f\u81f3\u5173\u91cd\u8981\u3002\u4f8b\u5982\uff0c\u5f53\u00a0SAM\u00a0\u9047\u4e0a\u5b9e\u7528\u7684\u56fe\u50cf\u4fee\u8865\uff08Image Inpainting\uff09\u4efb\u52a1\u4f1a\u78b0\u649e\u51fa\u4ec0\u4e48\u6837\u7684\u706b\u82b1\uff1f<\/p>\n\n\n\n<p class=\"has-light-pink-background-color has-background\">    \u6765\u81ea\u4e2d\u56fd\u79d1\u5b66\u6280\u672f\u5927\u5b66\u548c\u4e1c\u65b9\u7406\u5de5\u9ad8\u7b49\u7814\u7a76\u9662\u7684\u7814\u7a76\u56e2\u961f\u7ed9\u51fa\u4e86\u4ee4\u4eba\u60ca\u8273\u7684\u7b54\u6848\u3002\u57fa\u4e8e SAM\uff0c\u4ed6\u4eec\u63d0\u51fa\u300c\u4fee\u8865\u4e00\u5207\u300d\uff08Inpaint Anything\uff0c\u7b80\u79f0 IA\uff09\u6a21\u578b\u3002\u533a\u522b\u4e8e\u4f20\u7edf\u56fe\u50cf\u4fee\u8865\u6a21\u578b\uff0cIA \u6a21\u578b\u65e0\u9700\u7cbe\u7ec6\u5316\u64cd\u4f5c\u751f\u6210\u63a9\u7801\uff0c\u652f\u6301\u4e86\u4e00\u952e\u70b9\u51fb\u6807\u8bb0\u9009\u5b9a\u5bf9\u8c61\uff0cIA \u5373\u53ef\u5b9e\u73b0<strong>\u79fb\u9664\u4e00\u5207\u7269\u4f53\uff08Remove Anything\uff09\u3001\u586b\u8865\u4e00\u5207\u5185\u5bb9\uff08Fill Anything\uff09\u3001\u66ff\u6362\u4e00\u5207\u573a\u666f\uff08Replace Anything\uff09<\/strong>\uff0c\u6db5\u76d6\u4e86\u5305\u62ec\u76ee\u6807\u79fb\u9664\u3001\u76ee\u6807\u586b\u5145\u3001\u80cc\u666f\u66ff\u6362\u7b49\u5728\u5185\u7684\u591a\u79cd\u5178\u578b\u56fe\u50cf\u4fee\u8865\u5e94\u7528\u573a\u666f\u3002<\/p>\n\n\n\n<p>\u4e3b\u8981\u529f\u80fd\uff1a<\/p>\n\n\n\n<ul><li>\u00a0<a href=\"https:\/\/github.com\/geekyutao\/Inpaint-Anything#remove-anything\"><strong>Remove<\/strong>\u00a0Anything<\/a><\/li><li>\u00a0<a href=\"https:\/\/github.com\/geekyutao\/Inpaint-Anything#fill-anything\"><strong>Fill<\/strong>\u00a0Anything<\/a><\/li><li>\u00a0<a href=\"https:\/\/github.com\/geekyutao\/Inpaint-Anything#replace-anything\"><strong>Replace<\/strong>\u00a0Anything<\/a><\/li><li>\u00a0<a href=\"https:\/\/github.com\/geekyutao\/Inpaint-Anything#remove-anything-3d\">Remove Anything\u00a0<strong>3D<\/strong><\/a>\u00a0(\ud83d\udd25NEW)<\/li><\/ul>\n\n\n\n<p>   \u5c3d\u7ba1\u5f53\u524d\u56fe\u50cf\u4fee\u8865\u7cfb\u7edf\u53d6\u5f97\u4e86\u91cd\u5927\u8fdb\u5c55\uff0c\u4f46\u5b83\u4eec\u5728\u9009\u62e9\u63a9\u7801\u56fe\u548c\u586b\u8865\u7a7a\u6d1e\u65b9\u9762\u4ecd\u7136\u9762\u4e34\u56f0\u96be\u3002\u57fa\u4e8e SAM\uff0c<strong>\u7814\u7a76\u8005\u9996\u6b21\u5c1d\u8bd5\u65e0\u9700\u63a9\u7801\uff08Mask-Free\uff09\u56fe\u50cf\u4fee\u590d<\/strong>\uff0c\u5e76\u6784\u5efa\u4e86\u300c\u70b9\u51fb\u518d\u586b\u5145\u300d\uff08Clicking and Filling\uff09 \u7684\u56fe\u50cf\u4fee\u8865\u65b0\u8303\u5f0f\uff0c\u4ed6\u4eec\u5c06\u5176\u79f0\u4e3a\u4fee\u8865\u4e00\u5207 \uff08Inpaint Anything\uff09\uff08IA\uff09\u3002<strong>IA \u80cc\u540e\u7684\u6838\u5fc3\u601d\u60f3\u662f\u7ed3\u5408\u4e0d\u540c\u6a21\u578b\u7684\u4f18\u52bf\uff0c\u4ee5\u5efa\u7acb\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u4e14\u7528\u6237\u53cb\u597d\u7684\u56fe\u50cf\u4fee\u590d\u7cfb\u7edf<\/strong>\u3002<\/p>\n\n\n\n<p>    IA \u62e5\u6709\u4e09\u4e2a\u4e3b\u8981\u529f\u80fd\uff1a(i) \u79fb\u9664\u4e00\u5207\uff08Remove Anything\uff09\uff1a\u7528\u6237\u53ea\u9700\u70b9\u51fb\u4e00\u4e0b\u60f3\u8981\u79fb\u9664\u7684\u7269\u4f53\uff0cIA \u5c06\u65e0\u75d5\u5730\u79fb\u9664\u8be5\u7269\u4f53\uff0c\u5b9e\u73b0\u9ad8\u6548\u300c\u9b54\u6cd5\u6d88\u9664\u300d\uff1b(ii) \u586b\u8865\u4e00\u5207\uff08Fill Anything\uff09\uff1a\u540c\u65f6\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u8fdb\u4e00\u6b65\u901a\u8fc7\u6587\u672c\u63d0\u793a\uff08Text Prompt\uff09\u544a\u8bc9 IA \u60f3\u8981\u5728\u7269\u4f53\u5185\u586b\u5145\u4ec0\u4e48\uff0cIA \u968f\u5373\u901a\u8fc7\u9a71\u52a8\u5df2\u5d4c\u5165\u7684 AIGC\uff08AI-Generated Content\uff09\u6a21\u578b\uff08\u5982 Stable Diffusion \uff09\u751f\u6210\u76f8\u5e94\u7684\u5185\u5bb9\u586b\u5145\u7269\u4f53\uff0c\u5b9e\u73b0\u968f\u5fc3\u300c\u5185\u5bb9\u521b\u4f5c\u300d\uff1b(iii) \u66ff\u6362\u4e00\u5207\uff08Replace Anything\uff09\uff1a\u7528\u6237\u4e5f\u53ef\u4ee5\u901a\u8fc7\u70b9\u51fb\u9009\u62e9\u9700\u8981\u4fdd\u7559\u7684\u7269\u4f53\u5bf9\u8c61\uff0c\u5e76\u7528\u6587\u672c\u63d0\u793a\u544a\u8bc9 IA \u60f3\u8981\u628a\u7269\u4f53\u7684\u80cc\u666f\u66ff\u6362\u6210\u4ec0\u4e48\uff0c\u5373\u53ef\u5c06\u7269\u4f53\u80cc\u666f\u66ff\u6362\u4e3a\u6307\u5b9a\u5185\u5bb9\uff0c\u5b9e\u73b0\u751f\u52a8\u300c\u73af\u5883\u8f6c\u6362\u300d\u3002IA \u7684\u6574\u4f53\u6846\u67b6\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"698\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2023\/04\/image-32-1024x698.png\" alt=\"\" class=\"wp-image-14990\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2023\/04\/image-32-1024x698.png 1024w, http:\/\/139.9.1.231\/wp-content\/uploads\/2023\/04\/image-32-300x205.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2023\/04\/image-32-768x524.png 768w, http:\/\/139.9.1.231\/wp-content\/uploads\/2023\/04\/image-32.png 1351w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>    <em>Inpaint Anything\uff08IA\uff09\u793a\u610f\u56fe\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u5355\u51fb\u6765\u9009\u62e9\u56fe\u50cf\u4e2d\u7684\u4efb\u4f55\u7269\u4f53\u3002\u501f\u52a9\u5f3a\u5927\u7684\u89c6\u89c9\u6a21\u578b\uff0c\u5982 SAM\u3001LaMa  \u548c Stable Diffusion (SD) \uff0cIA \u80fd\u591f\u5e73\u6ed1\u79fb\u9664\u9009\u5b9a\u7269\u4f53\uff08\u5373 Remove Anything\uff09\u3002\u8fdb\u4e00\u6b65\u5730\uff0c\u901a\u8fc7\u5411 IA \u8f93\u5165\u6587\u672c\u63d0\u793a\uff0c\u7528\u6237\u53ef\u4ee5\u7528\u4efb\u4f55\u60f3\u8981\u7684\u5185\u5bb9\u586b\u5145\u7269\u4f53\uff08\u5373 Fill Anything\uff09\u6216\u8005\u4efb\u610f\u66ff\u6362\u5bf9\u8c61\u7684\u7269\u4f53\uff08\u5373 Replace Anything\uff09<\/em><\/p>\n\n\n\n<p><em>\u79fb\u9664\u4e00\u5207\uff08Remove Anything\uff09\u793a\u610f\u56fe<\/em><\/p>\n\n\n\n<p>&nbsp;\u300c\u79fb\u9664\u4e00\u5207\u300d\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul><li>\u7b2c 1 \u6b65\uff1a\u7528\u6237\u70b9\u51fb\u60f3\u8981\u79fb\u9664\u7684\u7269\u4f53\uff1b<\/li><li>\u7b2c 2 \u6b65\uff1aSAM \u5c06\u8be5\u7269\u4f53\u5206\u5272\u51fa\u6765\uff1b<\/li><li>\u7b2c 3 \u6b65\uff1a\u56fe\u50cf\u4fee\u8865\u6a21\u578b\uff08LaMa\uff09\u586b\u8865\u8be5\u7269\u4f53\u3002<\/li><\/ul>\n\n\n\n<p><strong>\u586b\u8865\u4e00\u5207<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\">Text prompt: &#8220;a teddy bear on a bench&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/github.com\/geekyutao\/Inpaint-Anything\/blob\/main\/example\/GIF\/Fill-sample1.gif\" target=\"_blank\" rel=\"noreferrer noopener\"><img src=\"https:\/\/github.com\/geekyutao\/Inpaint-Anything\/raw\/main\/example\/GIF\/Fill-sample1.gif\" alt=\"image\"\/><\/a><\/figure>\n\n\n\n<p><strong>Click<\/strong>&nbsp;on an object,&nbsp;<strong>type<\/strong>&nbsp;in what you want to fill, and Inpaint Anything will&nbsp;<strong>fill<\/strong>&nbsp;it!<\/p>\n\n\n\n<ul><li>Click on an object;<\/li><li><a href=\"https:\/\/segment-anything.com\/\">SAM<\/a>&nbsp;segments the object out;<\/li><li>Input a text prompt;<\/li><li>Text-prompt-guided inpainting models (e.g.,&nbsp;<a href=\"https:\/\/github.com\/CompVis\/stable-diffusion\">Stable Diffusion<\/a>) fill the &#8220;hole&#8221; according to the text.<\/li><\/ul>\n\n\n\n<p>\u300c\u586b\u8865\u4e00\u5207\u300d\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul><li>\u7b2c 1 \u6b65\uff1a\u7528\u6237\u70b9\u51fb\u60f3\u8981\u79fb\u9664\u7684\u7269\u4f53\uff1b<\/li><li>\u7b2c 2 \u6b65\uff1aSAM \u5c06\u8be5\u7269\u4f53\u5206\u5272\u51fa\u6765\uff1b<\/li><li>\u7b2c 3 \u6b65\uff1a\u7528\u6237\u901a\u8fc7\u6587\u672c\u793a\u610f\u60f3\u8981\u586b\u5145\u7684\u5185\u5bb9\uff1b<\/li><li>\u7b2c 4 \u6b65\uff1a\u57fa\u4e8e\u6587\u672c\u63d0\u793a\u7684\u56fe\u50cf\u4fee\u8865\u6a21\u578b\uff08Stable Diffusion\uff09\u6839\u636e\u7528\u6237\u63d0\u4f9b\u7684\u6587\u672c\u5bf9\u7269\u4f53\u8fdb\u884c\u586b\u5145\u3002<\/li><\/ul>\n\n\n\n<p><strong>\u66ff\u6362\u4e00\u5207<\/strong><\/p>\n\n\n\n<p><em>\u66ff\u6362\u4e00\u5207\uff08Replace Anything\uff09\u793a\u610f\u56fe\uff0c\u56fe\u4e2d\u4f7f\u7528\u7684\u6587\u672c\u63d0\u793a\uff1aa man in office<\/em><\/p>\n\n\n\n<p>\u300c\u586b\u8865\u4e00\u5207\u300d\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul><li>\u7b2c 1 \u6b65\uff1a\u7528\u6237\u70b9\u51fb\u60f3\u8981\u79fb\u9664\u7684\u7269\u4f53\uff1b<\/li><li>\u7b2c 2 \u6b65\uff1aSAM \u5c06\u8be5\u7269\u4f53\u5206\u5272\u51fa\u6765\uff1b<\/li><li>\u7b2c 3 \u6b65\uff1a\u7528\u6237\u901a\u8fc7\u6587\u672c\u793a\u610f\u60f3\u8981\u66ff\u6362\u7684\u80cc\u666f\uff1b<\/li><li>\u7b2c 4 \u6b65\uff1a\u57fa\u4e8e\u6587\u672c\u63d0\u793a\u7684\u56fe\u50cf\u4fee\u8865\u6a21\u578b\uff08Stable Diffusion\uff09\u6839\u636e\u7528\u6237\u63d0\u4f9b\u7684\u6587\u672c\u5bf9\u7269\u4f53\u7684\u80cc\u666f\u8fdb\u884c\u66ff\u6362\u3002<\/li><\/ul>\n\n\n\n<p>Text prompt: &#8220;a man in office&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/github.com\/geekyutao\/Inpaint-Anything\/blob\/main\/example\/GIF\/Replace-man.gif\" target=\"_blank\" rel=\"noreferrer noopener\"><img src=\"https:\/\/github.com\/geekyutao\/Inpaint-Anything\/raw\/main\/example\/GIF\/Replace-man.gif\" alt=\"image\"\/><\/a><\/figure>\n\n\n\n<p><strong>Click<\/strong>&nbsp;on an object,&nbsp;<strong>type<\/strong>&nbsp;in what background you want to replace, and Inpaint Anything will&nbsp;<strong>replace<\/strong>&nbsp;it!<\/p>\n\n\n\n<ul><li>Click on an object;<\/li><li><a href=\"https:\/\/segment-anything.com\/\">SAM<\/a>\u00a0segments the object out;<\/li><li>Input a text prompt;<\/li><li>Text-prompt-guided inpainting models (e.g.,\u00a0<a href=\"https:\/\/github.com\/CompVis\/stable-diffusion\">Stable Diffusion<\/a>) replace the background according to the text.<\/li><\/ul>\n\n\n\n<p>Remove Anything 3D<\/p>\n\n\n\n<p>Remove Anything 3D can remove any object from a 3D scene! We release some results below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/github.com\/geekyutao\/Inpaint-Anything\/blob\/main\/example\/remove-anything-3d\/horns\/org.gif?raw=true\" alt=\"org.gif\" width=\"209\" height=\"159\"\/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/github.com\/geekyutao\/Inpaint-Anything\/blob\/main\/example\/remove-anything-3d\/horns\/mask.gif?raw=true\" alt=\"mask.gif\" width=\"213\" height=\"162\"\/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/github.com\/geekyutao\/Inpaint-Anything\/blob\/main\/example\/remove-anything-3d\/horns\/result.gif?raw=true\" alt=\"result.gif\" width=\"211\" height=\"161\"\/><\/figure><\/div>\n\n\n\n<p>     \u7814\u7a76\u8005\u968f\u540e\u5728 COCO \u6570\u636e\u96c6\u3001LaMa \u6d4b\u8bd5\u6570\u636e\u96c6\u548c\u4ed6\u4eec\u81ea\u5df1\u7528\u624b\u673a\u62cd\u6444\u7684 2K \u9ad8\u6e05\u56fe\u50cf\u4e0a\u5bf9 Inpaint Anything \u8fdb\u884c\u6d4b\u8bd5\u3002\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c<strong>\u7814\u7a76\u8005\u7684\u6a21\u578b\u8fd8\u652f\u6301 2K \u9ad8\u6e05\u56fe\u548c\u4efb\u610f\u957f\u5bbd\u6bd4\uff0c\u8fd9\u4f7f\u5f97 IA \u7cfb\u7edf\u5728\u5404\u79cd\u96c6\u6210\u73af\u5883\u548c\u73b0\u6709\u6846\u67b6\u4e2d\u90fd\u80fd\u591f\u5b9e\u73b0\u9ad8\u6548\u7684\u8fc1\u79fb\u5e94\u7528<\/strong>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8bba\u6587\u94fe\u63a5\uff1ahttp:\/\/arxiv.org\/abs\/2304.06790 \u4ee3\u7801\u5e93\u94fe\u63a5\uff1ahttps:\/\/gith &hellip; <a href=\"http:\/\/139.9.1.231\/index.php\/2023\/04\/25\/inpaint-anything-segment-anything-meets-image-inpainting\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Inpaint Anything: Segment Anything Meets Image Inpainting<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[37,21,4],"tags":[],"_links":{"self":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/14982"}],"collection":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/comments?post=14982"}],"version-history":[{"count":12,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/14982\/revisions"}],"predecessor-version":[{"id":14995,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/14982\/revisions\/14995"}],"wp:attachment":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/media?parent=14982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/categories?post=14982"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/tags?post=14982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}