{"id":5202,"date":"2022-08-05T19:01:34","date_gmt":"2022-08-05T11:01:34","guid":{"rendered":"http:\/\/139.9.1.231\/?p=5202"},"modified":"2022-08-05T19:12:31","modified_gmt":"2022-08-05T11:12:31","slug":"mmediting","status":"publish","type":"post","link":"http:\/\/139.9.1.231\/index.php\/2022\/08\/05\/mmediting\/","title":{"rendered":"mmediting \u4e2d\u6587\u6587\u6863"},"content":{"rendered":"\n<h1>MMEditing: \u591a\u4efb\u52a1\u56fe\u50cf\u89c6\u9891\u7f16\u8f91\u5de5\u5177\u7bb1<\/h1>\n\n\n\n<p>        \u8fd9\u662f\u4e00\u4e2a\u56fe\u50cf\u548c\u89c6\u9891\u7f16\u8f91\u7684\u5de5\u5177\u7bb1\uff0c\u5b83\u76ee\u524d\u5305\u542b\u4e86\u5e38\u89c1\u7684\u7f16\u8f91\u4efb\u52a1\uff0c\u6bd4\u5982\u56fe\u50cf\u4fee\u590d\uff0c\u56fe\u50cf\u62a0\u56fe\uff0c\u8d85\u5206\u8fa8\u7387\u548c\u751f\u6210\u6a21\u578b\u3002\u5728\u7f16\u8f91\u56fe\u50cf\u6216\u8005\u89c6\u9891\u7684\u65f6\u5019\uff0c\u6211\u4eec\u5f80\u5f80\u662f\u9700\u8981\u7ec4\u5408\u4f7f\u7528\u4ee5\u4e0a\u4efb\u52a1\u7684\uff0c\u56e0\u6b64\u5c06\u5b83\u4eec\u6574\u7406\u5230\u4e00\u4e2a\u7edf\u4e00\u7684\u6846\u67b6\u4e0b\uff0c\u65b9\u4fbf\u5927\u5bb6\u4f7f\u7528\u3002<\/p>\n\n\n\n<p>\u57fa\u4e8e PyTorch \u7684\u56fe\u50cf&amp;\u89c6\u9891\u7f16\u8f91\u5f00\u6e90\u5de5\u5177\u7bb1, \u63d0\u4f9b\u4fee\u590d\/\u62a0\u56fe\/\u8d85\u5206\u8fa8\u7387\/\u751f\u6210\u7b49\u4efb\u52a1\u6700\u5148\u8fdb\u7684\u7b97\u6cd5\u3002<\/p>\n\n\n\n<p class=\"has-light-pink-background-color has-background\">github: <a href=\"https:\/\/github.com\/open-mmlab\/mmediting\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/open-mmlab\/mmediting<\/a><\/p>\n\n\n\n<p class=\"has-light-pink-background-color has-background\"><em><strong>\u4e2d\u6587\u6587\u6863\uff1a <a href=\"https:\/\/mmediting.readthedocs.io\/zh_CN\/latest\/\">https:\/\/mmediting.readthedocs.io\/zh_CN\/latest\/<\/a><\/strong><\/em><\/p>\n\n\n\n<p>\u76ee\u524d MMEditing \u652f\u6301\u4e0b\u5217\u4efb\u52a1\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/user-images.githubusercontent.com\/12756472\/158984079-c4754015-c1f6-48c5-ac46-62e79448c372.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u4e3b\u5206\u652f\u4ee3\u7801\u76ee\u524d\u652f\u6301&nbsp;<strong>PyTorch 1.5 \u4ee5\u4e0a<\/strong>\u7684\u7248\u672c\u3002<\/p>\n\n\n\n<p>MMEditing \u7684\u4f18\u52bf\uff1a<\/p>\n\n\n\n<p>1.&nbsp;<strong>\u7edf\u4e00\u7684\u6846\u67b6<\/strong>\uff1a\u6211\u4eec\u8bbe\u8ba1\u4e86\u5148\u8fdb\u7684\u6846\u67b6\u6765\u7edf\u4e00\u6700\u5e38\u89c1\u7684\u56fe\u50cf\u4fee\u590d\uff0c\u56fe\u50cf\u62a0\u56fe\uff0c\u8d85\u5206\u8fa8\u7387\u548c\u751f\u6210\u6a21\u578b\u8fd9\u51e0\u4e2a\u4efb\u52a1\u3002\u7528\u6237\u53ef\u4ee5\u5728\u4e00\u4e2a\u6846\u67b6\u4e2d\u65b9\u4fbf\u5730\u8c03\u7528\u4e0d\u540c\u7684\u7b97\u6cd5\u548c\u6a21\u578b\u3002<\/p>\n\n\n\n<p>2.&nbsp;<strong>\u7075\u6d3b\u7684\u6a21\u5757\u5316\u8bbe\u8ba1<\/strong>\uff1a\u7528\u6237\u80fd\u591f\u57fa\u4e8e\u8fd9\u5957\u6846\u67b6\u7075\u6d3b\u5730\u589e\u52a0\u65b0\u7684\u529f\u80fd\u548c\u7b97\u6cd5\u3002<\/p>\n\n\n\n<p>3.&nbsp;<strong>\u4e30\u5bcc\u7684\u6a21\u578b\u548c\u6587\u6863<\/strong>\uff1a\u4e0b\u56fe\u4e2d\u5c55\u793a\u4e86\u6211\u4eec\u652f\u6301\u7684\u7b97\u6cd5\u6570\u76ee\uff0c\u8981\u77e5\u9053\u5176\u4e2d\u6709\u4e0d\u5c11\u7b97\u6cd5\u662f\u9996\u6b21\u6709\u5b8c\u6574\u7684\u590d\u73b0\u54e6~\u6211\u4eec\u4e5f\u5b8c\u5584\u4e86\u6587\u6863\uff08\u6587\u6863\u8986\u76d6\u7387\u9ad8\u8fbe90%\u4ee5\u4e0a\uff09\u548c\u5165\u95e8\u6750\u6599\uff0c\u65b9\u4fbf\u7528\u6237\u4e0a\u624b\u3002<\/p>\n\n\n\n<p>4.&nbsp;<strong>\u9ad8\u6548\u7684\u5b9e\u73b0<\/strong>\uff1aMMEditing\u6240\u6709\u7684\u8bad\u7ec3\u5305\u62ec GAN \u7684\u5bf9\u6297\u8bad\u7ec3\u90fd\u662f\u57fa\u4e8e\u9ad8\u6548\u7684\u5206\u5e03\u5f0f\u8bad\u7ec3\u6846\u67b6\u90e8\u7f72\u7684\uff0c\u5bf9\u4e8e\u4e00\u4e9b\u57fa\u7840\u7684\u64cd\u4f5c\u5355\u5143\uff0c\u6211\u4eec\u4e5f\u76f8\u5e94\u5730\u8fdb\u884c\u4e86\u4f18\u5316\u3002<\/p>\n\n\n\n<h3>\u4e3b\u8981\u7279\u6027<\/h3>\n\n\n\n<ul><li><strong>\u6a21\u5757\u5316\u8bbe\u8ba1<\/strong>MMEditing \u5c06\u7f16\u8f91\u6846\u67b6\u5206\u89e3\u4e3a\u4e0d\u540c\u7684\u7ec4\u4ef6\uff0c\u5e76\u4e14\u53ef\u4ee5\u901a\u8fc7\u7ec4\u5408\u4e0d\u540c\u7684\u6a21\u5757\u8f7b\u677e\u5730\u6784\u5efa\u81ea\u5b9a\u4e49\u7684\u7f16\u8f91\u5668\u6a21\u578b\u3002<\/li><li><strong>\u652f\u6301\u591a\u79cd\u7f16\u8f91\u4efb\u52a1<\/strong>MMEditing \u652f\u6301<em>\u4fee\u590d<\/em>\u3001<em>\u62a0\u56fe<\/em>\u3001<em>\u8d85\u5206\u8fa8\u7387<\/em>\u3001<em>\u751f\u6210<\/em>\u7b49\u591a\u79cd\u4e3b\u6d41\u7f16\u8f91\u4efb\u52a1\u3002<\/li><li><strong>SOTA<\/strong>MMEditing \u63d0\u4f9b\u4fee\u590d\/\u62a0\u56fe\/\u8d85\u5206\u8fa8\u7387\/\u751f\u6210\u7b49\u4efb\u52a1\u6700\u5148\u8fdb\u7684\u7b97\u6cd5\u3002<\/li><\/ul>\n\n\n\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f&nbsp;<strong>MMSR<\/strong>&nbsp;\u5df2\u4f5c\u4e3a MMEditing \u7684\u4e00\u90e8\u5206\u5e76\u5165\u672c\u4ed3\u5e93\u3002 MMEditing \u7f1c\u5bc6\u5730\u8bbe\u8ba1\u65b0\u7684\u6846\u67b6\u5e76\u5c06\u5176\u7cbe\u5fc3\u5b9e\u73b0\uff0c\u5e0c\u671b\u80fd\u591f\u4e3a\u60a8\u5e26\u6765\u66f4\u597d\u7684\u4f53\u9a8c\u3002<\/p>\n\n\n\n<h2>\u5b89\u88c5<\/h2>\n\n\n\n<p>MMEditing \u4f9d\u8d56&nbsp;<a href=\"https:\/\/pytorch.org\/\">PyTorch<\/a>&nbsp;\u548c&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmcv\">MMCV<\/a>\uff0c\u4ee5\u4e0b\u662f\u5b89\u88c5\u7684\u7b80\u8981\u6b65\u9aa4\u3002<\/p>\n\n\n\n<p><strong>\u6b65\u9aa4 1.<\/strong>&nbsp;\u4f9d\u7167<a href=\"https:\/\/pytorch.org\/get-started\/locally\/\">\u5b98\u65b9\u6559\u7a0b<\/a>\u5b89\u88c5PyTorch<\/p>\n\n\n\n<p><strong>\u6b65\u9aa4 2.<\/strong>&nbsp;\u4f7f\u7528&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mim\">MIM<\/a>&nbsp;\u5b89\u88c5 MMCV<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip3 install openmim\nmim install mmcv-full\n<\/code><\/pre>\n\n\n\n<p><strong>\u6b65\u9aa4 3.<\/strong>&nbsp;\u4ece\u6e90\u7801\u5b89\u88c5 MMEditing<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/open-mmlab\/mmediting.git\ncd mmediting\npip3 install -e .<\/code><\/pre>\n\n\n\n<h2>\u6a21\u578b\u5e93<\/h2>\n\n\n\n<p>\u652f\u6301\u7684\u7b97\u6cd5:\u56fe\u50cf\u4fee\u590d<\/p>\n\n\n\n<ul><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/inpainting\/global_local\/README.md\">Global&amp;Local<\/a>&nbsp;(ToG&#8217;2017)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/inpainting\/deepfillv1\/README.md\">DeepFillv1<\/a>&nbsp;(CVPR&#8217;2018)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/inpainting\/partial_conv\/README.md\">PConv<\/a>&nbsp;(ECCV&#8217;2018)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/inpainting\/deepfillv2\/README.md\">DeepFillv2<\/a>&nbsp;(CVPR&#8217;2019)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/inpainting\/AOT-GAN\/README.md\">AOT-GAN<\/a>&nbsp;(TVCG&#8217;2021)<\/li><\/ul>\n\n\n\n<p>\u56fe\u50cf\u62a0\u56fe<\/p>\n\n\n\n<ul><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/mattors\/dim\/README.md\">DIM<\/a>&nbsp;(CVPR&#8217;2017)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/mattors\/indexnet\/README.md\">IndexNet<\/a>&nbsp;(ICCV&#8217;2019)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/mattors\/gca\/README.md\">GCA<\/a>&nbsp;(AAAI&#8217;2020)<\/li><\/ul>\n\n\n\n<p>\u56fe\u50cf\u8d85\u5206\u8fa8\u7387<\/p>\n\n\n\n<ul><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/srcnn\/README.md\">SRCNN<\/a>&nbsp;(TPAMI&#8217;2015)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/srresnet_srgan\/README.md\">SRResNet&amp;SRGAN<\/a>&nbsp;(CVPR&#8217;2016)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/edsr\/README.md\">EDSR<\/a>&nbsp;(CVPR&#8217;2017)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/esrgan\/README.md\">ESRGAN<\/a>&nbsp;(ECCV&#8217;2018)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/rdn\/README.md\">RDN<\/a>&nbsp;(CVPR&#8217;2018)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/dic\/README.md\">DIC<\/a>&nbsp;(CVPR&#8217;2020)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/ttsr\/README.md\">TTSR<\/a>&nbsp;(CVPR&#8217;2020)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/glean\/README.md\">GLEAN<\/a>&nbsp;(CVPR&#8217;2021)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/liif\/README.md\">LIIF<\/a>&nbsp;(CVPR&#8217;2021)<\/li><\/ul>\n\n\n\n<p>\u89c6\u9891\u8d85\u5206\u8fa8\u7387<\/p>\n\n\n\n<ul><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/edvr\/README.md\">EDVR<\/a>&nbsp;(CVPR&#8217;2019)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/tof\/README.md\">TOF<\/a>&nbsp;(IJCV&#8217;2019)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/tdan\/README.md\">TDAN<\/a>&nbsp;(CVPR&#8217;2020)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/basicvsr\/README.md\">BasicVSR<\/a>&nbsp;(CVPR&#8217;2021)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/iconvsr\/README.md\">IconVSR<\/a>&nbsp;(CVPR&#8217;2021)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/basicvsr_plusplus\/README.md\">BasicVSR++<\/a>&nbsp;(CVPR&#8217;2022)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/restorers\/real_basicvsr\/README.md\">RealBasicVSR<\/a>&nbsp;(CVPR&#8217;2022)<\/li><\/ul>\n\n\n\n<p>\u56fe\u50cf\u751f\u6210<\/p>\n\n\n\n<ul><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/synthesizers\/cyclegan\/README.md\">CycleGAN<\/a>&nbsp;(ICCV&#8217;2017)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/synthesizers\/pix2pix\/README.md\">pix2pix<\/a>&nbsp;(CVPR&#8217;2017)<\/li><\/ul>\n\n\n\n<p>\u89c6\u9891\u63d2\u5e27<\/p>\n\n\n\n<ul><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/video_interpolators\/tof\/README.md\">TOFlow<\/a>&nbsp;(IJCV&#8217;2019)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/video_interpolators\/cain\/README.md\">CAIN<\/a>&nbsp;(AAAI&#8217;2020)<\/li><li>&nbsp;<a href=\"https:\/\/github.com\/open-mmlab\/mmediting\/blob\/master\/configs\/video_interpolators\/flavr\/README.md\">FLAVR<\/a>&nbsp;(CVPR&#8217;2021)<\/li><\/ul>\n\n\n\n<p>\u8bf7\u53c2\u8003<a href=\"https:\/\/mmediting.readthedocs.io\/en\/latest\/modelzoo.html\">\u6a21\u578b\u5e93<\/a>\u4e86\u89e3\u8be6\u60c5\u3002<\/p>\n\n\n\n<h2>Super-Resolution \u8d85\u5206\u8fa8\u7387<\/h2>\n\n\n\n<p>\u8d85\u5206\u8fa8\u7387\uff08\u7b80\u79f0\u8d85\u5206\uff09\uff0c\u662f\u5c06\u4f4e\u5206\u8fa8\u7387\u56fe\u50cf\u653e\u5927\u5230\u9ad8\u5206\u8fa8\u7387\u56fe\u50cf\uff0c\u5982\u4e0b\u56fe\uff0c\u4e00\u53ea\u5c0f\u72d2\u72d2\u7ecf\u8fc7 SR\u7f51\u7edc\u540e\uff0c\u53ef\u4ee5\u5f97\u5230\u653e\u5927\uff0c\u53d8\u6210\u4e00\u53ea\u201c\u5927\u201d\u72d2\u72d2\u3002<\/p>\n\n\n\n<p>\u968f\u7740\u6df1\u5ea6\u5b66\u4e60\u7684\u5174\u8d77\uff0c\u65e9\u57282014\u5e74\uff0c\u9999\u6e2f\u4e2d\u6587\u5927\u5b66\u591a\u5a92\u4f53\u5b9e\u9a8c\u5ba4\u5c31\u63d0\u51fa\u4e86\u9996\u4e2a\u4f7f\u7528\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\u89e3\u51b3\u8d85\u5206\u8fa8\u7387\u7684\u6a21\u578b\u2014\u2014SRCNN\u3002\u4f5c\u4e3a\u56fe\u50cf\u8d85\u5206\u8fa8\u7387\u5de5\u4f5c\uff0cSRCNN \u5bf9\u540e\u7eed\u8ba1\u7b97\u673a\u89c6\u89c9\u7684\u5e95\u5c42\u7b97\u6cd5\u7814\u7a76\u4ea7\u751f\u4e86\u91cd\u8981\u5f71\u54cd\u3002\u540e\u7eed\uff0c\u5404\u79cd\u5404\u6837\u7684\u7f51\u7edc\u7ed3\u6784\u5982\u96e8\u540e\u6625\u7b0b\u822c\u5730\u5192\u4e86\u51fa\u6765\uff0c\u6bd4\u5982VDSR\uff0cEDSR\uff0cSRResNet \u7b49\u7b49; \u8fd8\u6709\u8ffd\u6c42\u89c6\u89c9\u6548\u679c\u7684 SRGAN, ESRGAN\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>MMEditing\u628a\u4e00\u4e9b\u57fa\u672c\u7684\u8d85\u5206\u7b97\u6cd5\uff0c\u6bd4\u5982 SRCNN\uff0cEDSR\uff0cSResNet\uff0cSRGAN\u8fd8\u6709\u89c6\u9891\u7684 EDVR \u7b97\u6cd5\u90fd\u5305\u62ec\u8fdb\u53bb\u3002\u4e4b\u524d OpenMMLab \u4e2d\u7684 MMSR \u4e5f\u6709\u7c7b\u4f3c\u7684\u529f\u80fd\uff0c\u76f8\u6bd4\u4e4b\u4e0b\uff0cMMEditing \u4f7f\u7528\u4e86\u66f4\u597d\u7684\u6846\u67b6\u8bbe\u8ba1\uff0c\u7528\u4e0a\u4e86 MMCV \u548c MMDetection \u5728\u53d1\u5c55\u8fc7\u7a0b\u4e2d\u7684\u7ecf\u9a8c\u79ef\u6dc0\u3002\u6574\u4e2a MM \u7cfb\u5217\u90fd\u91c7\u7528\u4e86\u7c7b\u4f3c\u7684\u6846\u67b6\uff0c\u53ea\u8981\u638c\u63e1\u4e86\u4e00\u79cd\uff0c\u5c31\u80fd\u591f\u8f7b\u800c\u6613\u4e3e\u5730\u638c\u63e1\u5176\u4ed6\u4efb\u52a1\u7684\u4ee3\u7801\u5e93\u3002<\/p>\n\n\n\n<h2>Inpainting\u4fee\u590d<\/h2>\n\n\n\n<p>Inpainting\uff08\u56fe\u50cf\u4fee\u590d\uff09\u662f\u56fe\u50cf\u7f16\u8f91\u9886\u57df\u91cc\u9762\u4e00\u9879\u57fa\u7840\u7684\u4efb\u52a1\uff0c\u5176\u4e3b\u8981\u76ee\u6807\u662f\u4fee\u590d\u56fe\u50cf\u4e2d\u7684\u53d7\u635f\uff08\u6c61\u67d3\uff09\u533a\u57df\u3002\u5982\u4e0b\u56fe\u4e2d\uff0c\u5de6\u8fb9\u662f\u539f\u56fe\uff0c\u4e2d\u95f4\u662f\u53d7\u635f\u533a\u57df\u793a\u610f\u56fe\uff0c\u4f60\u53ef\u4ee5\u53bb\u9664\u56fe\u50cf\u4e2d\u7684\u4e0d\u60f3\u8981\u7684\u4eba\u7269\uff0c\u6216\u8005\u662f\u56fe\u50cf\u4e2d\u6742\u4e71\u7684\u4e0d\u89c4\u5219\u7684\u53d7\u635f\u533a\u57df\u3002\u7136\u540e\u7ecf\u8fc7 Inpainting \u4fee\u590d\u7b97\u6cd5\u5c31\u5f97\u5230\u6700\u53f3\u8fb9\u7684\u56fe\u5566\u3002<\/p>\n\n\n\n<p>Inpainting \u4f5c\u4e3a\u4e00\u9879\u57fa\u7840\u4efb\u52a1\uff0c\u73b0\u5982\u4eca\u5df2\u7ecf\u88ab\u5e7f\u6cdb\u7684\u5e94\u7528\u5230\u5404\u79cd\u5404\u6837\u7684\u573a\u666f\uff0c\u6bd4\u5982\u9762\u90e8\u4fee\u590d\uff0c\u80cc\u666f\u586b\u5145\u4ee5\u53ca\u89c6\u9891\u7f16\u8f91\u4e2d\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"858\" height=\"209\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/image-25.png\" alt=\"\" class=\"wp-image-5215\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/image-25.png 858w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/image-25-300x73.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/image-25-768x187.png 768w\" sizes=\"(max-width: 858px) 100vw, 858px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u524d\u4f20\u7edf\u7684 Patch-Matching \u7b97\u6cd5\u53ef\u4ee5\u901a\u8fc7\u56fe\u4e2d\u5df2\u77e5\u533a\u57df\u7684\u7eb9\u7406\u6765\u5feb\u901f\u586b\u8865\u5f53\u524d\u53d7\u635f\u533a\u57df\u3002\u968f\u7740\u6df1\u5ea6\u5b66\u4e60\u7684\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u5de5\u4f5c\u5229\u7528\u6df1\u5ea6\u795e\u7ecf\u7f51\u7edc\u5b9e\u73b0\u66f4\u597d\u7684\u56fe\u50cf\u4fee\u590d\u6548\u679c\u3002\u6df1\u5ea6\u56fe\u50cf\u4fee\u590d\u9886\u57df\u4e2d\uff0c\u6709\u8bb8\u591a\u7ecf\u5178\u7684\u5f00\u521b\u6027\u7684\u5de5\u4f5c\u50cf Global&amp;Local\u3001Partial Conv \u4ee5\u53ca DeepFill \u7cfb\u5217\uff0c\u4ed6\u4eec\u4f5c\u4e3a\u6df1\u5ea6\u56fe\u50cf\u4fee\u590d\u7684\u7ecf\u5178\u6a21\u578b\u88ab\u5e7f\u6cdb\u5730\u5e94\u7528\u5230\u540e\u6765\u7684\u7814\u7a76\u5de5\u4f5c\u5f53\u4e2d\u3002\u53ef\u662f\u8fd9\u4e9b\u65b9\u6cd5\u90fd\u6ca1\u6709\u5b98\u65b9\u7684 PyTorch \u5b9e\u73b0\uff0c\u4e3a\u4e86\u65b9\u4fbf\u5927\u5bb6\u66f4\u597d\u7684\u7814\u7a76\u548c\u6df1\u5165\u4e86\u89e3\u8fd9\u4e9b\u6a21\u578b\uff0c\u6211\u4eec\u5728 MMEditing \u4e2d\u96c6\u6210\u4e86\u8fd9\u4e9b\u7b97\u6cd5\u7684\u8bad\u7ec3\u548c\u6d4b\u8bd5\u529f\u80fd\u3002\u540c\u65f6\uff0c\u6211\u4eec\u5bf9\u5176\u4e2d\u4e00\u4e9b\u91cd\u8981\u7684\u6a21\u5757\u8fdb\u884c\u4e86\u4ee3\u7801\u4e0a\u7684\u4f18\u5316\uff0c\u4ee5\u4f7f\u5176\u66f4\u52a0\u7b26\u5408 PyTorch \u7684\u98ce\u683c\uff0c\u751a\u81f3\u662f\u66f4\u5feb\u7684 GPU \u8ba1\u7b97\uff0c\u4ece\u800c\u80fd\u591f\u6709\u66f4\u597d\u7684\u8bad\u7ec3\u901f\u5ea6\u3002<\/p>\n\n\n\n<h2>Matting\u62a0\u50cf<\/h2>\n\n\n\n<p>\u62a0\u50cf\uff08Matting\uff09\u95ee\u9898\u662f\u4e00\u4e2a\u5728\u8ba1\u7b97\u673a\u89c6\u89c9\u7814\u7a76\u9886\u57df\u6709\u91cd\u8981\u4ef7\u503c\u7684\u7814\u7a76\u8bfe\u9898\uff0c\u5176\u5728\u5de5\u4e1a\u754c\u4e5f\u6709\u975e\u5e38\u91cd\u8981\u7684\u5e94\u7528\u3002<\/p>\n\n\n\n<p>\u62a0\u50cf\u662f\u5c06\u524d\u666f\u4ece\u56fe\u7247\u6216\u8005\u89c6\u9891\u4e2d\u4e0e\u80cc\u666f\u5206\u79bb\u5f00\u6765\u7684\u95ee\u9898\uff0c\u6bd4\u5982\u4e0b\u56fe\u4e2d\uff0c\u8f93\u5165\u662f\u5de6\u56fe\uff0c\u4e00\u4f4d\u8d85\u7ea7\u53ef\u7231\u7684\u5c0f\u59d0\u59d0\u5728\u79c0\u4e3d\u7684\u98ce\u666f\u524d\u4e2d\uff0c\u6211\u4eec\u5e0c\u671b\u5f97\u5230\u53f3\u8fb9\u7684\u5c0f\u59d0\u59d0\u7684\u62a0\u50cf\u7ed3\u679c\uff08b\uff09\u3002\u5b83\u548c segmentation\u5206\u5272\u7684\u4e0d\u540c\u4e4b\u5904\u5728\u4e8e\uff0cmatting \u9700\u8981\u5f97\u5230\u66f4\u7cbe\u51c6\u7684\u8fb9\u7f18\uff08\u5982\u5934\u53d1\uff09\u4ee5\u53ca\u4e0e\u80cc\u666f\u7684\u7ec4\u5408\u7cfb\u6570\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"661\" height=\"191\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/image-26.png\" alt=\"\" class=\"wp-image-5216\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/image-26.png 661w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/image-26-300x87.png 300w\" sizes=\"(max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>\u4e3a\u4e86\u964d\u4f4e\u6c42\u89e3\u7684\u96be\u5ea6\uff0c\u4e00\u79cd\u6700\u5e38\u89c1\u7684\u65b9\u5f0f\u662f\u5f15\u5165\u7528\u6237\u8f93\u5165\u7684 trimap\uff08\u5982\u4e0b\u56fe\uff09\uff0c\u6765\u5bf9\u56fe\u7247\u8fdb\u884c\u7b80\u5355\u7684\u4e09\u5206\u7c7b\u3002\u5176\u4e2d,\u56fe\u4e2d\u7684\u9ed1\u8272\u4e3a\u80cc\u666f\uff0c\u767d\u8272\u4e3a\u524d\u666f\uff0c\u7070\u8272\u4e3a\u672a\u77e5\u533a\u57df\u3002\u7ed9\u5b9a trimap \u540e\uff0c\u6211\u4eec\u53ea\u9700\u8981\u6c42\u89e3\u672a\u77e5\u533a\u57df\u7684\u62a0\u56fe\u7ed3\u679c\uff0c\u8fd9\u5927\u5927\u964d\u4f4e\u4e86\u6c42\u89e3\u7684\u96be\u5ea6\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"343\" height=\"197\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/image-27.png\" alt=\"\" class=\"wp-image-5218\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/image-27.png 343w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/image-27-300x172.png 300w\" sizes=\"(max-width: 343px) 100vw, 343px\" \/><\/figure><\/div>\n\n\n\n<p>\u5728 MMEditing \u4e2d\uff0c\u6211\u4eec\u9996\u6b21\u5b8c\u6574\u590d\u73b0\u4e86 DIM\uff08Deep Image Matting\uff09\u5728\u539f\u8bba\u6587\u4e2d\u7684\u6027\u80fd\u3002\u9664\u6b64\u4e4b\u5916\uff0cMMEditing \u8fd8\u5305\u542b\u5f53\u524d\u5f00\u6e90 Matting \u6a21\u578b\u4e2d\u6027\u80fd\u6700\u597d\u7684 GCA Matting \u6a21\u578b\uff0c\u4ee5\u53ca\u901f\u5ea6\u6700\u5feb\u7684 IndexNet Matting\u3002<\/p>\n\n\n\n<h2>Generation\u751f\u6210\u6a21\u578b<\/h2>\n\n\n\n<p>Generation\uff0c\u4e2d\u6587\u542b\u4e49\u4e3a\u201c\u751f\u6210\u201d\u3002\u6240\u8c13\u751f\u6210\uff0c\u4e0d\u540c\u4e8e\u5176\u4ed6\u56fe\u50cf\u7f16\u8f91\u7684\u4efb\u52a1\uff0c\u65e8\u5728\u521b\u9020\u65b0\u7684\u56fe\u50cf\u3002\u6211\u4eec\u8bd5\u56fe\u901a\u8fc7\u6df1\u5ea6\u5b66\u4e60\u7684\u65b9\u5f0f\uff0c\u8ba9\u795e\u7ecf\u7f51\u7edc\u6210\u4e3a\u521b\u9020\u8005\uff0c\u4ea7\u751f\u65b0\u7684\u4fe1\u606f\u3002\u751f\u6210\u4efb\u52a1\u4e00\u822c\u5206\u4e3a\u4e24\u79cd\uff0c\u975e\u6761\u4ef6\uff08unconditional\uff09\u548c\u6761\u4ef6\uff08conditional\uff09\u7684\u751f\u6210\u3002\u6240\u8c13\u975e\u6761\u4ef6\u751f\u6210\uff0c\u4e3b\u8981\u662f\u4ece\u6f5c\u5728\u7a7a\u95f4\uff08latent space\uff09\u4e2d\u7684\u566a\u58f0\uff08noise\uff09\u5f80\u56fe\u50cf\u57df\uff08image domain\uff09\u8fdb\u884c\u8f6c\u6362\uff0c\u5e76\u8bd5\u56fe\u8fd1\u4f3c\u76f8\u5173\u8fb9\u7f18\u6982\u7387\u5206\u5e03\uff0c\u4ea7\u751f\u903c\u771f\u7684\u56fe\u50cf\uff1b\u6240\u8c13\u6761\u4ef6\u751f\u6210\uff0c\u4e3b\u8981\u662f\u4ece\u4e00\u4e2a\u56fe\u50cf\u57df\u6620\u5c04\u5230\u6f5c\u5728\u7a7a\u95f4\uff0c\u5e76\u8fdb\u4e00\u6b65\u8f6c\u6362\u5230\u53e6\u4e00\u4e2a\u56fe\u50cf\u57df\u3002\u76ee\u524d\u7684MMEditing\u4e3b\u8981\u652f\u6301\u540e\u8005\uff0c\u5373\u4ece\u4e00\u4e2a\u56fe\u50cf\u57df\u6620\u5c04\u5230\u53e6\u4e00\u4e2a\u56fe\u50cf\u57df\uff0c\u5982\u5206\u5272\u7684mask\u8f6c\u6362\u5230\u771f\u5b9e\u56fe\u50cf\u3001\u9a6c\u8f6c\u6362\u5230\u6591\u9a6c\u7b49\u3002\u540e\u8005\u7684\u6761\u4ef6\u751f\u6210\u4e5f\u66f4\u52a0\u7b26\u5408\u76ee\u524d\u56fe\u50cf\u7f16\u8f91\u7684\u4e3b\u9898\u3002<\/p>\n\n\n\n<p>\u800c\u76ee\u524d MMEditing \u652f\u6301\u7684\u6761\u4ef6\u56fe\u50cf\u751f\u6210\uff0c\u53c8\u53ef\u4ee5\u5206\u4e3a\u4e24\u79cd\u4e0d\u540c\u7684\u8bbe\u5b9a\u3002\u5176\u4e2d\u4e00\u79cd\u751f\u6210\u6a21\u578b\u7684\u8bad\u7ec3\u6570\u636e\u4e2d\uff0c\u5305\u542b\u6210\u5bf9\u7684\u8bad\u7ec3\u6570\u636e\uff0c\u88ab\u79f0\u4e3a\u201c\u6210\u5bf9\u56fe\u50cf\u5230\u56fe\u50cf\u8f6c\u6362\uff08paired image-to-image translation\uff09\u201d\u3002\u8fd9\u79cd\u8bbe\u5b9a\u4e00\u822c\u751f\u6210\u4efb\u52a1\u7684\u96be\u5ea6\u6bd4\u8f83\u4f4e\uff0c\u4f46\u5bf9\u6570\u636e\u672c\u8eab\u7684\u8981\u6c42\u6bd4\u8f83\u9ad8\uff0c\u751f\u6210\u6548\u679c\u4e00\u822c\u6bd4\u8f83\u826f\u597d\u3002\u6700\u7ecf\u5178\u7684\u6210\u5bf9\u56fe\u50cf\u5230\u56fe\u50cf\u8f6c\u6362\u7684\u65b9\u6cd5\uff0c\u540d\u4e3a&nbsp;<strong>pix2pix<\/strong>\u3002 \u5b83\u4e5f\u662f\u56fe\u50cf\u5230\u56fe\u50cf\u8f6c\u6362\u9886\u57df\u5f00\u5c71\u9f3b\u7956\u7684\u6587\u7ae0\uff0c\u56e0\u6b64\u6211\u4eec\u5728\u8fd9\u4e2a\u7248\u672c\u4e2d\u9996\u5148\u8003\u8651\u5bf9\u5b83\u8fdb\u884c\u5b9e\u73b0\uff0c\u83b7\u5f97\u4e86\u4e0e\u4f5c\u8005\u5b98\u65b9\u5b9e\u73b0\u4e00\u81f4\u7684\u7ed3\u679c\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"662\" height=\"335\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/image-28.png\" alt=\"\" class=\"wp-image-5220\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/image-28.png 662w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/08\/image-28-300x152.png 300w\" sizes=\"(max-width: 662px) 100vw, 662px\" \/><\/figure><\/div>\n\n\n\n<p>\u53e6\u4e00\u79cd\u751f\u6210\u6a21\u578b\u7684\u8bad\u7ec3\u6570\u636e\u4e2d\uff0c\u4ec5\u5305\u542b\u975e\u6210\u5bf9\u7684\u8bad\u7ec3\u6570\u636e\uff0c\u88ab\u79f0\u4e3a\u201c\u975e\u6210\u5bf9\u56fe\u50cf\u5230\u56fe\u50cf\u8f6c\u6362\uff08unpaired image-to-image translation\uff09\u201d\u3002\u8fd9\u79cd\u8bbe\u5b9a\u4e00\u822c\u5bf9\u6570\u636e\u8981\u6c42\u8f83\u4f4e\uff0c\u5f88\u5bb9\u6613\u6784\u5efa\u4e24\u4e2a\u660e\u786e\u7684\u56fe\u50cf\u57df\uff0c\u4f46\u751f\u6210\u96be\u5ea6\u8f83\u5927\uff0c\u751f\u6210\u6548\u679c\u4f1a\u7565\u5fae\u964d\u4f4e\u3002\u63d0\u51fa\u975e\u6210\u5bf9\u56fe\u50cf\u5230\u56fe\u50cf\u8f6c\u6362\u95ee\u9898\uff0c\u5e76\u9996\u5148\u7ed9\u51fa\u89e3\u51b3\u65b9\u6848\uff08cycle-consistency\uff09\u7684\u65b9\u6cd5\uff0c\u540d\u4e3a&nbsp;<strong>CycleGAN<\/strong>\u3002CycleGAN \u4f5c\u4e3a\u6700\u7ecf\u5178\u7684\u975e\u6210\u5bf9\u56fe\u50cf\u5230\u56fe\u50cf\u8f6c\u6362\u7684\u751f\u6210\u65b9\u6cd5\uff0c\u6211\u4eec\u5728\u8fd9\u4e2a\u7248\u672c\u4e2d\u540c\u6837\u9996\u5148\u8003\u8651\u5bf9\u5b83\u8fdb\u884c\u5b9e\u73b0\u548c\u6548\u679c\u5bf9\u9f50\u3002<\/p>\n\n\n\n<p>\u751f\u6210\uff08Generation\uff09\u4efb\u52a1\u901a\u5e38\u6bd4\u8f83\u56f0\u96be\uff0c\u4f46\u5411\u4eba\u4eec\u5c55\u793a\u51fa\u4e86\u60ca\u4eba\u7684\u6548\u679c\u548c\u5e7f\u9614\u7684\u7814\u7a76\u524d\u666f\u3002\u5728\u672a\u6765 MMEditing \u4ee3\u7801\u5e93\u7684\u7248\u672c\u4e2d\uff0c\u6211\u4eec\u4f1a\u8003\u8651\u52a0\u5165\u66f4\u591a\u4e0d\u540c\u7684\u751f\u6210\u8bbe\u5b9a\uff0c\u4ee5\u53ca\u591a\u79cd\u751f\u6210\u65b9\u6cd5\uff0c\u8ba9\u6211\u4eec\u7684\u4ee3\u7801\u5e93\u66f4\u52a0\u5168\u9762\u3001\u4e30\u5bcc\u3001\u5f3a\u5927\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MMEditing: \u591a\u4efb\u52a1\u56fe\u50cf\u89c6\u9891\u7f16\u8f91\u5de5\u5177\u7bb1 \u8fd9\u662f\u4e00\u4e2a\u56fe\u50cf\u548c\u89c6\u9891\u7f16\u8f91\u7684\u5de5\u5177\u7bb1\uff0c\u5b83\u76ee\u524d\u5305\u542b\u4e86\u5e38\u89c1\u7684\u7f16\u8f91\u4efb\u52a1\uff0c\u6bd4 &hellip; <a href=\"http:\/\/139.9.1.231\/index.php\/2022\/08\/05\/mmediting\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">mmediting \u4e2d\u6587\u6587\u6863<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11,4],"tags":[],"_links":{"self":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/5202"}],"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=5202"}],"version-history":[{"count":15,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/5202\/revisions"}],"predecessor-version":[{"id":5223,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/5202\/revisions\/5223"}],"wp:attachment":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/media?parent=5202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/categories?post=5202"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/tags?post=5202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}