{"id":62334,"date":"2026-01-19T21:18:17","date_gmt":"2026-01-19T13:18:17","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/62334.html"},"modified":"2026-01-19T21:18:17","modified_gmt":"2026-01-19T13:18:17","slug":"2026%e5%b9%b4%e6%9c%80%e5%bc%baai%e6%8a%a0%e5%9b%be%e7%a5%9e%e5%99%a8%ef%bc%81rembg%e5%bc%80%e6%ba%90%e5%b7%a5%e5%85%b7%e4%bb%8e%e5%85%a5%e9%97%a8%e5%88%b0%e8%bf%9b%e9%98%b6%e5%ae%9e%e6%88%98","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/62334.html","title":{"rendered":"2026\u5e74\u6700\u5f3aAI\u62a0\u56fe\u795e\u5668\uff01Rembg\u5f00\u6e90\u5de5\u5177\u4ece\u5165\u95e8\u5230\u8fdb\u9636\u5b9e\u6218"},"content":{"rendered":"<p>\u00a0<img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260119131815-696e2f17629ac.png\" \/><\/p>\n<h3>\u544a\u522bPS\u62a0\u56fe\u5669\u68a6<\/h3>\n<p>\u4f60\u662f\u5426\u8fd8\u62a0\u56fe\u9700\u8981\u7cbe\u7ec6\u8c03\u6574\u8fb9\u7f18&#xff0c;\u4e00\u5f20\u56fe\u81f3\u5c11\u8017\u65f610\u5206\u949f&#xff1b;\u5728\u7ebf\u62a0\u56fe\u5de5\u5177\u8981\u4e48\u6536\u8d39&#xff0c;\u8981\u4e48\u6709\u6c34\u5370\u9650\u5236\u3002\u4eca\u5929\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u6b3eGitHub 19K\u661f\u7684AI\u62a0\u56fe\u795e\u5668\u2014\u2014Rembg&#xff01;<\/p>\n<p>Rembg\u7684\u6838\u5fc3\u4f18\u52bf&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u2705 \u5b8c\u5168\u514d\u8d39\u5f00\u6e90&#xff0c;\u57fa\u4e8e\u5148\u8fdb\u7684U\u00b2-Net\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b<\/p>\n<\/li>\n<li>\n<p>\u2705 \u79bb\u7ebf\u8fd0\u884c&#xff0c;\u4fdd\u62a4\u9690\u79c1\u6570\u636e\u5b89\u5168<\/p>\n<\/li>\n<li>\n<p>\u2705 \u4e00\u952e\u53bb\u80cc\u666f&#xff0c;5\u884c\u4ee3\u7801\u641e\u5b9a\u4e13\u4e1a\u62a0\u56fe<\/p>\n<\/li>\n<li>\n<p>\u2705 \u652f\u6301\u6279\u91cf\u5904\u7406&#xff0c;\u7535\u5546\u8fd0\u8425\u6548\u7387\u63d0\u534710\u500d<\/p>\n<\/li>\n<\/ul>\n<p>\u8bdd\u4e0d\u591a\u8bf4&#xff0c;\u9a6c\u4e0a\u5f00\u59cb\u5b9e\u6218&#xff01;<\/p>\n<hr \/>\n<h3>\u7b2c\u4e00\u90e8\u5206&#xff1a;\u5feb\u901f\u5165\u95e8 &#8211; 5\u5206\u949f\u4e0a\u624bAI\u62a0\u56fe<\/h3>\n<h4>1.1 \u73af\u5883\u51c6\u5907<\/h4>\n<p>\u7cfb\u7edf\u8981\u6c42&#xff1a;<\/p>\n<ul>\n<li>\n<p>Python 3.8 \u6216\u66f4\u9ad8\u7248\u672c<\/p>\n<\/li>\n<li>\n<p>\u63a8\u8350\u4f7f\u7528\u865a\u62df\u73af\u5883&#xff08;\u907f\u514d\u4f9d\u8d56\u51b2\u7a81&#xff09;<\/p>\n<\/li>\n<\/ul>\n<p>\u5feb\u901f\u68c0\u67e5Python\u7248\u672c&#xff1a;<\/p>\n<p>python &#8211;version<br \/>\n# \u8f93\u51fa\u5e94\u663e\u793a&#xff1a;Python 3.8.x \u6216\u66f4\u9ad8<\/p>\n<h4>1.2 \u4e00\u952e\u5b89\u88c5Rembg<\/h4>\n<p>\u6253\u5f00\u7ec8\u7aef&#xff0c;\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4&#xff08;\u8d85\u7ea7\u7b80\u5355&#xff09;&#xff1a;<\/p>\n<p># \u57fa\u7840\u7248\u672c&#xff08;CPU\u8fd0\u884c&#xff09;<br \/>\npip install rembg<\/p>\n<p># GPU\u52a0\u901f\u7248\u672c&#xff08;\u63a8\u8350&#xff0c;\u901f\u5ea6\u5feb3\u500d&#xff09;<br \/>\npip install rembg[gpu]<\/p>\n<p>\u5b89\u88c5\u65f6\u95f4&#xff1a; \u7ea62-5\u5206\u949f&#xff08;\u53d6\u51b3\u4e8e\u7f51\u901f&#xff09;<\/p>\n<p>\u5e38\u89c1\u95ee\u9898&#xff1a; \u5982\u679c\u9047\u5230\u4e0b\u8f7d\u6162&#xff0c;\u4f7f\u7528\u56fd\u5185\u955c\u50cf\u6e90&#xff1a;<\/p>\n<p>pip install rembg -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/p>\n<h4>1.3 \u795e\u5947\u76845\u884c\u4ee3\u7801 &#8211; \u4f60\u7684\u7b2c\u4e00\u5f20\u62a0\u56fe<\/h4>\n<p>\u521b\u5efa\u6587\u4ef6 quick_start.py&#xff0c;\u590d\u5236\u4ee5\u4e0b\u4ee3\u7801&#xff1a;<\/p>\n<p>from rembg import remove<br \/>\nfrom PIL import Image<\/p>\n<p># \u8bfb\u53d6\u539f\u59cb\u56fe\u7247<br \/>\ninput_image &#061; Image.open(&#039;input.jpg&#039;)<\/p>\n<p># AI\u4e00\u952e\u53bb\u80cc\u666f&#xff08;\u5c31\u8fd9\u4e48\u7b80\u5355&#xff01;&#xff09;<br \/>\noutput_image &#061; remove(input_image)<\/p>\n<p># \u4fdd\u5b58\u4e3aPNG\u900f\u660e\u80cc\u666f\u56fe<br \/>\noutput_image.save(&#039;output.png&#039;)<\/p>\n<p>print(&#034;\u62a0\u56fe\u5b8c\u6210&#xff01;\u67e5\u770b output.png&#034;)<\/p>\n<p>\u8fd0\u884c\u547d\u4ee4&#xff1a;<\/p>\n<p>python quick_start.py<\/p>\n<p>\u6548\u679c\u5bf9\u6bd4&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u539f\u56fe&#xff1a;\u666e\u901aJPG&#xff0c;\u5e26\u590d\u6742\u80cc\u666f<\/p>\n<\/li>\n<li>\n<p>\u8f93\u51fa&#xff1a;PNG\u900f\u660e\u80cc\u666f&#xff0c;\u4e3b\u4f53\u5b8c\u7f8e\u4fdd\u7559<\/p>\n<\/li>\n<\/ul>\n<p>\u662f\u4e0d\u662f\u8d85\u7ea7\u7b80\u5355&#xff1f;AI\u81ea\u52a8\u8bc6\u522b\u4e3b\u4f53&#xff0c;\u8fde\u5934\u53d1\u4e1d\u90fd\u80fd\u7cbe\u51c6\u5904\u7406&#xff01;<\/p>\n<hr \/>\n<h3>\u7b2c\u4e8c\u90e8\u5206&#xff1a;\u8fdb\u9636\u6280\u5de7 &#8211; \u89e3\u9501\u4e13\u4e1a\u529f\u80fd<\/h3>\n<h4>2.1 \u6279\u91cf\u5904\u7406100\u5f20\u56fe\u7247<\/h4>\n<p>\u7535\u5546\u8fd0\u8425\u5fc5\u5907&#xff01;\u81ea\u52a8\u5904\u7406\u6574\u4e2a\u6587\u4ef6\u5939\u7684\u5546\u54c1\u56fe&#xff1a;<\/p>\n<p>import os<br \/>\nfrom rembg import remove<br \/>\nfrom PIL import Image<\/p>\n<p>def batch_remove_bg(input_folder, output_folder):<br \/>\n    &#034;&#034;&#034;<br \/>\n    \u6279\u91cf\u62a0\u56fe\u51fd\u6570<\/p>\n<p>    \u53c2\u6570:<br \/>\n        input_folder: \u539f\u59cb\u56fe\u7247\u6587\u4ef6\u5939\u8def\u5f84<br \/>\n        output_folder: \u8f93\u51fa\u6587\u4ef6\u5939\u8def\u5f84<br \/>\n    &#034;&#034;&#034;<br \/>\n    # \u521b\u5efa\u8f93\u51fa\u6587\u4ef6\u5939<br \/>\n    if not os.path.exists(output_folder):<br \/>\n        os.makedirs(output_folder)<\/p>\n<p>    # \u652f\u6301\u7684\u56fe\u7247\u683c\u5f0f<br \/>\n    supported_formats &#061; (&#039;.jpg&#039;, &#039;.jpeg&#039;, &#039;.png&#039;, &#039;.bmp&#039;)<\/p>\n<p>    # \u904d\u5386\u6240\u6709\u56fe\u7247<br \/>\n    for filename in os.listdir(input_folder):<br \/>\n        if filename.lower().endswith(supported_formats):<br \/>\n            # \u5b8c\u6574\u8def\u5f84<br \/>\n            input_path &#061; os.path.join(input_folder, filename)<br \/>\n            output_path &#061; os.path.join(output_folder,<br \/>\n                                      f&#034;{os.path.splitext(filename)[0]}.png&#034;)<\/p>\n<p>            # \u5904\u7406\u56fe\u7247<br \/>\n            with Image.open(input_path) as img:<br \/>\n                output &#061; remove(img)<br \/>\n                output.save(output_path)<br \/>\n                print(f&#034;\u5df2\u5904\u7406: {filename}&#034;)<\/p>\n<p># \u4f7f\u7528\u793a\u4f8b<br \/>\nbatch_remove_bg(&#039;products&#039;, &#039;products_output&#039;)<br \/>\nprint(&#034;&#x1f389; \u6279\u91cf\u5904\u7406\u5b8c\u6210&#xff01;&#034;)<\/p>\n<p>\u5b9e\u6d4b\u6548\u679c&#xff1a; 100\u5f20\u56fe\u7247\u7ea65\u5206\u949f\u5904\u7406\u5b8c\u6210&#xff08;GPU\u6a21\u5f0f&#xff09;<\/p>\n<h4>2.2 \u81ea\u5b9a\u4e49\u80cc\u666f\u8272 &#8211; \u4e0d\u53ea\u662f\u900f\u660e<\/h4>\n<p>\u6709\u65f6\u5019\u9700\u8981\u767d\u8272\u80cc\u666f\u6216\u7eaf\u8272\u80cc\u666f&#xff0c;\u8fd9\u6837\u505a&#xff1a;<\/p>\n<p>from rembg import remove<br \/>\nfrom PIL import Image<br \/>\nimport numpy as np<\/p>\n<p>def add_custom_background(input_path, output_path, bg_color&#061;(255, 255, 255)):<br \/>\n    &#034;&#034;&#034;<br \/>\n    \u6dfb\u52a0\u81ea\u5b9a\u4e49\u80cc\u666f\u8272<\/p>\n<p>    \u53c2\u6570:<br \/>\n        input_path: \u8f93\u5165\u56fe\u7247\u8def\u5f84<br \/>\n        output_path: \u8f93\u51fa\u56fe\u7247\u8def\u5f84<br \/>\n        bg_color: \u80cc\u666f\u989c\u8272RGB\u5143\u7ec4&#xff0c;\u9ed8\u8ba4\u767d\u8272<br \/>\n    &#034;&#034;&#034;<br \/>\n    # \u62a0\u56fe\u5f97\u5230\u900f\u660e\u80cc\u666f<br \/>\n    with Image.open(input_path) as img:<br \/>\n        output &#061; remove(img)<\/p>\n<p>    # \u521b\u5efa\u7eaf\u8272\u80cc\u666f<br \/>\n    background &#061; Image.new(&#039;RGB&#039;, output.size, bg_color)<\/p>\n<p>    # \u5c06\u62a0\u56fe\u7ed3\u679c\u7c98\u8d34\u5230\u80cc\u666f\u4e0a<br \/>\n    background.paste(output, (0, 0), output)<\/p>\n<p>    # \u4fdd\u5b58<br \/>\n    background.save(output_path)<br \/>\n    print(f&#034;\u5df2\u6dfb\u52a0\u80cc\u666f\u8272: RGB{bg_color}&#034;)<\/p>\n<p># \u4f7f\u7528\u793a\u4f8b<br \/>\nadd_custom_background(&#039;input.jpg&#039;, &#039;white_bg.jpg&#039;, (255, 255, 255))  # \u767d\u8272\u80cc\u666f<br \/>\nadd_custom_background(&#039;input.jpg&#039;, &#039;blue_bg.jpg&#039;, (0, 120, 255))     # \u84dd\u8272\u80cc\u666f<\/p>\n<h4>2.3 \u6a21\u578b\u9009\u62e9 &#8211; \u4e0d\u540c\u573a\u666f\u7528\u4e0d\u540c\u6b66\u5668<\/h4>\n<p>Rembg\u652f\u6301\u591a\u79cdAI\u6a21\u578b&#xff0c;\u9488\u5bf9\u4e0d\u540c\u573a\u666f\u4f18\u5316&#xff1a;<\/p>\n<p>from rembg import remove, new_session<\/p>\n<p># \u6a21\u578b\u5bf9\u6bd4\u8868<br \/>\nmodels &#061; {<br \/>\n    &#039;u2net&#039;: &#039;\u901a\u7528\u573a\u666f&#xff0c;\u901f\u5ea6\u5feb&#039;,<br \/>\n    &#039;u2netp&#039;: &#039;\u8f7b\u91cf\u7248&#xff0c;\u79fb\u52a8\u7aef\u53cb\u597d&#039;,<br \/>\n    &#039;u2net_human_seg&#039;: &#039;\u4eba\u50cf\u4e13\u7528&#xff0c;\u7cbe\u5ea6\u66f4\u9ad8&#039;,<br \/>\n    &#039;isnet-general-use&#039;: &#039;2023\u5e74\u65b0\u6a21\u578b&#xff0c;\u8fb9\u7f18\u66f4\u81ea\u7136&#039;<br \/>\n}<\/p>\n<p>def compare_models(input_path):<br \/>\n    &#034;&#034;&#034;\u5bf9\u6bd4\u4e0d\u540c\u6a21\u578b\u6548\u679c&#034;&#034;&#034;<br \/>\n    for model_name, description in models.items():<br \/>\n        print(f&#034;\u6b63\u5728\u4f7f\u7528\u6a21\u578b: {model_name} ({description})&#034;)<\/p>\n<p>        # \u521b\u5efa\u6a21\u578b\u4f1a\u8bdd<br \/>\n        session &#061; new_session(model_name)<\/p>\n<p>        # \u5904\u7406\u56fe\u7247<br \/>\n        with Image.open(input_path) as img:<br \/>\n            output &#061; remove(img, session&#061;output_{model_name}.png&#039;)<\/p>\n<p># \u4f7f\u7528\u793a\u4f8b<br \/>\ncompare_models(&#039;portrait.jpg&#039;)<\/p>\n<p>\u6a21\u578b\u63a8\u8350&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u4eba\u50cf\u62a0\u56fe \u2192 u2net_human_seg<\/p>\n<\/li>\n<li>\n<p>\u52a8\u7269\/\u5ba0\u7269 \u2192 u2net<\/p>\n<\/li>\n<li>\n<p>\u4ea7\u54c1\u56fe \u2192 isnet-general-use<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>\u7b2c\u4e09\u90e8\u5206&#xff1a;\u6253\u9020\u4e13\u4e1aWeb\u754c\u9762<\/h3>\n<h4>3.1 \u4f7f\u7528Streamlit\u6784\u5efa\u53ef\u89c6\u5316\u5de5\u5177<\/h4>\n<p>\u8ba9\u4e0d\u61c2\u7f16\u7a0b\u7684\u540c\u4e8b\u4e5f\u80fd\u7528\u4e0aAI\u62a0\u56fe&#xff01;\u5b8c\u6574\u4ee3\u7801\u5982\u4e0b&#xff1a;<\/p>\n<p>import streamlit as st<br \/>\nfrom rembg import remove<br \/>\nfrom PIL import Image<br \/>\nimport io<\/p>\n<p># \u9875\u9762\u914d\u7f6e<br \/>\nst.set_page_config(<br \/>\n    page_title&#061;&#034;AI\u62a0\u56fe\u795e\u5668&#034;,<br \/>\n    page_icon&#061;&#034;\u2702\ufe0f&#034;,<br \/>\n    layout&#061;&#034;wide&#034;<br \/>\n)<\/p>\n<p># \u6807\u9898<br \/>\nst.title(&#034;\u2702\ufe0f AI\u667a\u80fd\u62a0\u56fe\u5de5\u5177&#034;)<br \/>\nst.markdown(&#034;### \u57fa\u4e8eRembg\u5f00\u6e90\u9879\u76ee | \u4e00\u952e\u53bb\u9664\u56fe\u7247\u80cc\u666f&#034;)<\/p>\n<p># \u4fa7\u8fb9\u680f\u914d\u7f6e<br \/>\nwith st.sidebar:<br \/>\n    st.header(&#034;\u2699\ufe0f \u8bbe\u7f6e\u9009\u9879&#034;)<\/p>\n<p>    # \u80cc\u666f\u989c\u8272\u9009\u62e9<br \/>\n    bg_option &#061; st.radio(<br \/>\n        &#034;\u9009\u62e9\u8f93\u51fa\u80cc\u666f&#034;,<br \/>\n        [&#034;\u900f\u660e\u80cc\u666f&#034;, &#034;\u767d\u8272\u80cc\u666f&#034;, &#034;\u81ea\u5b9a\u4e49\u989c\u8272&#034;]<br \/>\n    )<\/p>\n<p>    # \u81ea\u5b9a\u4e49\u989c\u8272\u9009\u62e9\u5668<br \/>\n    if bg_option &#061;&#061; &#034;\u81ea\u5b9a\u4e49\u989c\u8272&#034;:<br \/>\n        custom_color &#061; st.color_picker(&#034;\u9009\u62e9\u80cc\u666f\u989c\u8272&#034;, &#034;#FFFFFF&#034;)<\/p>\n<p>    # \u6a21\u578b\u9009\u62e9<br \/>\n    model_choice &#061; st.selectbox(<br \/>\n        &#034;\u9009\u62e9AI\u6a21\u578b&#034;,<br \/>\n        [&#034;u2net&#034;, &#034;u2net_human_seg&#034;, &#034;isnet-general-use&#034;],<br \/>\n        help&#061;&#034;\u4e0d\u540c\u6a21\u578b\u9002\u7528\u4e8e\u4e0d\u540c\u573a\u666f&#034;<br \/>\n    )<\/p>\n<p># \u4e3b\u754c\u9762 &#8211; \u6587\u4ef6\u4e0a\u4f20<br \/>\nuploaded_file &#061; st.file_uploader(<br \/>\n    &#034;\u62d6\u62fd\u6216\u70b9\u51fb\u4e0a\u4f20\u56fe\u7247&#034;,<br \/>\n    type&#061;[&#039;png&#039;, &#039;jpg&#039;, &#039;jpeg&#039;, &#039;bmp&#039;],<br \/>\n    help&#061;&#034;\u652f\u6301\u5e38\u89c1\u56fe\u7247\u683c\u5f0f&#034;<br \/>\n)<\/p>\n<p>if uploaded_file is not None:<br \/>\n    # \u521b\u5efa\u4e24\u5217\u5e03\u5c40<br \/>\n    col1, col2 &#061; st.columns(2)<\/p>\n<p>    # \u663e\u793a\u539f\u56fe<br \/>\n    with col1:<br \/>\n        st.subheader(&#034;&#x1f4f7; \u539f\u59cb\u56fe\u7247&#034;)<br \/>\n        input_image &#061; Image.open(uploaded_file)<br \/>\n        st.image(input_image, use_container_width&#061;True)<\/p>\n<p>    # \u5904\u7406\u6309\u94ae<br \/>\n    if st.button(&#034;&#x1f680; \u5f00\u59cb\u62a0\u56fe&#034;, type&#061;&#034;primary&#034;):<br \/>\n        with st.spinner(&#034;AI\u6b63\u5728\u5904\u7406\u4e2d&#8230;&#034;):<br \/>\n            # \u53bb\u9664\u80cc\u666f<br \/>\n            output_image &#061; remove(input_image)<\/p>\n<p>            # \u6839\u636e\u9009\u9879\u5904\u7406\u80cc\u666f<br \/>\n            if bg_option &#061;&#061; &#034;\u767d\u8272\u80cc\u666f&#034;:<br \/>\n                background &#061; Image.new(&#039;RGB&#039;, output_image.size, (255, 255, 255))<br \/>\n                background.paste(output_image, (0, 0), output_image)<br \/>\n                output_image &#061; background<br \/>\n            elif bg_option &#061;&#061; &#034;\u81ea\u5b9a\u4e49\u989c\u8272&#034;:<br \/>\n                # \u5c06hex\u8f6cRGB<br \/>\n                rgb &#061; tuple(int(custom_color.lstrip(&#039;#&#039;)[i:i&#043;2], 16) for i in (0, 2, 4))<br \/>\n                background &#061; Image.new(&#039;RGB&#039;, output_image.size, rgb)<br \/>\n                background.paste(output_image, (0, 0), output_image)<br \/>\n                output_image &#061; background<\/p>\n<p>        # \u663e\u793a\u7ed3\u679c<br \/>\n        with col2:<br \/>\n            st.subheader(&#034;\u2728 \u62a0\u56fe\u7ed3\u679c&#034;)<br \/>\n            st.image(output_image, use_container_width&#061;True)<\/p>\n<p>        # \u4e0b\u8f7d\u6309\u94ae<br \/>\n        buf &#061; io.BytesIO()<br \/>\n        output_image.save(buf, format&#061;&#039;PNG&#039;)<\/p>\n<p>        st.download_button(<br \/>\n            label&#061;&#034;&#x1f4e5; \u4e0b\u8f7d\u7ed3\u679c\u56fe\u7247&#034;,<br \/>\n            data&#061;buf.getvalue(),<br \/>\n            file_name&#061;&#034;rembg_output.png&#034;,<br \/>\n            mime&#061;&#034;image\/png&#034;<br \/>\n        )<\/p>\n<p>        st.success(&#034;\u2705 \u5904<br \/>\n    &lt;div style&#061;&#039;text-align: center&#039;&gt;<br \/>\n        &lt;p&gt;&#x1f4a1; \u6280\u672f\u652f\u6301&#xff1a;Rembg\u5f00\u6e90\u9879\u76ee | \u2b50 GitHub 19K&#043; Stars&lt;\/p&gt;<br \/>\n    &lt;\/div&gt;<br \/>\n    &#034;&#034;&#034;,<br \/>\n    unsafe_allow_html&#061;True<br \/>\n)<\/p>\n<p>\u8fd0\u884c\u754c\u9762&#xff1a;<\/p>\n<p>streamlit run app.py<\/p>\n<p>\u6d4f\u89c8\u5668\u81ea\u52a8\u6253\u5f00 http:\/\/localhost:8501&#xff0c;\u8d85\u6f02\u4eae\u7684\u754c\u9762&#xff01;<\/p>\n<h4>3.2 \u4e00\u952e\u90e8\u7f72\u5230\u4e91\u7aef<\/h4>\n<p>\u514d\u8d39\u90e8\u7f72\u5230Streamlit Cloud&#xff1a;<\/p>\n<li>\n<p>\u5c06\u4ee3\u7801\u4e0a\u4f20\u5230GitHub\u4ed3\u5e93<\/p>\n<\/li>\n<li>\n<p>\u521b\u5efa requirements.txt&#xff1a;<\/p>\n<\/li>\n<p>rembg&#061;&#061;2.0.50<br \/>\nstreamlit&#061;&#061;1.29.0<br \/>\nPillow&#061;&#061;10.1.0<\/p>\n<li>\n<p>\u8bbf\u95ee <span>streamlit.io\/cloud<\/span> \u767b\u5f55<\/p>\n<\/li>\n<li>\n<p>\u70b9\u51fb &#034;New app&#034; \u2192 \u9009\u62e9\u4f60\u7684\u4ed3\u5e93 \u2192 Deploy<\/p>\n<\/li>\n<p>5\u5206\u949f\u540e&#xff0c;\u4f60\u5c31\u6709\u4e86\u4e00\u4e2a\u5728\u7ebfAI\u62a0\u56fe\u7f51\u7ad9&#xff01;\u00a0<\/p>\n<hr \/>\n<h3>\u7b2c\u56db\u90e8\u5206&#xff1a;\u6027\u80fd\u4f18\u5316\u4e0e\u8e29\u5751\u6307\u5357<\/h3>\n<h4>4.1 GPU\u52a0\u901f\u914d\u7f6e<\/h4>\n<p>Windows\u7cfb\u7edf&#xff1a;<\/p>\n<p># \u5b89\u88c5CUDA\u7248\u672c\u7684PyTorch<br \/>\npip install torch torchvision &#8211;index-url https:\/\/download.pytorch.org\/whl\/cu118<\/p>\n<p># \u9a8c\u8bc1GPU\u53ef\u7528<br \/>\npython -c &#034;import torch; print(torch.cuda.is_available())&#034;<\/p>\n<p>\u901f\u5ea6\u5bf9\u6bd4&#xff1a;<\/p>\n<ul>\n<li>\n<p>CPU\u6a21\u5f0f&#xff1a;1\u5f20\u56fe\u7ea63-5\u79d2<\/p>\n<\/li>\n<li>\n<p>GPU\u6a21\u5f0f&#xff1a;1\u5f20\u56fe\u7ea60.5-1\u79d2&#xff08;\u63d0\u53475\u500d&#xff01;&#xff09;<\/p>\n<\/li>\n<\/ul>\n<h4>4.2 \u5927\u56fe\u5904\u7406\u5185\u5b58\u4f18\u5316<\/h4>\n<p>\u5904\u7406\u9ad8\u5206\u8fa8\u7387\u56fe\u7247\u65f6&#xff0c;\u907f\u514d\u5185\u5b58\u6ea2\u51fa&#xff1a;<\/p>\n<p>from rembg import remove<br \/>\nfrom PIL import Image<\/p>\n<p>def process_large_image(input_path, output_path, max_size&#061;2000):<br \/>\n    &#034;&#034;&#034;<br \/>\n    \u5904\u7406\u5927\u5c3a\u5bf8\u56fe\u7247<\/p>\n<p>    \u53c2\u6570:<br \/>\n        max_size: \u6700\u5927\u8fb9\u957f\u9650\u5236&#xff08;\u50cf\u7d20&#xff09;<br \/>\n    &#034;&#034;&#034;<br \/>\n    with Image.open(input_path) as img:<br \/>\n        # \u83b7\u53d6\u539f\u59cb\u5c3a\u5bf8<br \/>\n        width, height &#061; img.size<\/p>\n<p>        # \u5982\u679c\u56fe\u7247\u8fc7\u5927&#xff0c;\u5148\u7f29\u653e<br \/>\n        if max(width, height) &gt; max_size:<br \/>\n            ratio &#061; max_size \/ max(width, height)<br \/>\n            new_size &#061; (int(width * ratio), int(height * ratio))<br \/>\n            img &#061; img.resize(new_size, Image.Resampling.LANCZOS)<br \/>\n            print(f&#034;\u56fe\u7247\u5df2\u7f29\u653e\u81f3: {new_size}&#034;)<\/p>\n<p>        # \u62a0\u56fe<br \/>\n        output &#061; remove(img)<br \/>\n        output.save(output_path)<br \/>\n        print(&#034;\u5904\u7406\u5b8c\u6210&#xff01;&#034;)<\/p>\n<p># \u4f7f\u7528\u793a\u4f8b<br \/>\nprocess_large_image(&#039;huge_photo.jpg&#039;, &#039;output.png&#039;)<\/p>\n<h4>4.3 \u5e38\u89c1\u62a5\u9519\u89e3\u51b3\u65b9\u6848<\/h4>\n<p>\u95ee\u98981&#xff1a;\u6a21\u578b\u4e0b\u8f7d\u5931\u8d25<\/p>\n<p># \u75c7\u72b6&#xff1a;ModuleNotFoundError \u6216\u4e0b\u8f7d\u8d85\u65f6<\/p>\n<p># \u89e3\u51b3\u65b9\u6848&#xff1a;\u624b\u52a8\u6307\u5b9a\u6a21\u578b\u7f13\u5b58\u8def\u5f84<br \/>\nimport os<br \/>\nos.environ[&#039;U2NET_HOME&#039;] &#061; &#039;.\/models&#039;  # \u81ea\u5b9a\u4e49\u6a21\u578b\u5b58\u653e\u4f4d\u7f6e<\/p>\n<p>\u95ee\u98982&#xff1a;CUDA out of memory<\/p>\n<p># \u75c7\u72b6&#xff1a;RuntimeError: CUDA out of memory<\/p>\n<p># \u89e3\u51b3\u65b9\u6848&#xff1a;\u964d\u4f4e\u56fe\u7247\u5206\u8fa8\u7387\u6216\u5207\u6362CPU\u6a21\u5f0f<br \/>\nimport torch<br \/>\ntorch.cuda.empty_cache()  # \u6e05\u7a7aGPU\u7f13\u5b58<\/p>\n<p>\u95ee\u98983&#xff1a;\u900f\u660e\u901a\u9053\u4e22\u5931<\/p>\n<p># \u786e\u4fdd\u4fdd\u5b58\u4e3aPNG\u683c\u5f0f<br \/>\noutput.save(&#039;result.png&#039;, &#039;PNG&#039;)  # \u660e\u786e\u6307\u5b9a\u683c\u5f0f<\/p>\n<hr \/>\n<h3>\u5b9e\u6218\u5e94\u7528\u573a\u666f<\/h3>\n<h4>\u573a\u666f1&#xff1a;\u7535\u5546\u4ea7\u54c1\u56fe\u6279\u91cf\u5904\u7406<\/h4>\n<p># \u81ea\u52a8\u5904\u7406\u5e97\u94fa\u6240\u6709\u5546\u54c1\u56fe<br \/>\nbatch_remove_bg(&#039;products&#039;, &#039;products_clean&#039;)<br \/>\n# \u7ed3\u679c&#xff1a;\u7edf\u4e00\u767d\u5e95\u56fe&#xff0c;\u4e0a\u67b6\u901f\u5ea6\u63d0\u534710\u500d<\/p>\n<h4>\u573a\u666f2&#xff1a;\u8bc1\u4ef6\u7167\u5feb\u901f\u5236\u4f5c<\/h4>\n<p># \u4eba\u50cf\u62a0\u56fe &#043; \u6dfb\u52a0\u8bc1\u4ef6\u7167\u80cc\u666f<br \/>\nadd_custom_background(&#039;portrait.jpg&#039;, &#039;id_photo.jpg&#039;, (0, 120, 215))  # \u84dd\u8272\u80cc\u666f<\/p>\n<h4>\u573a\u666f3&#xff1a;\u8bbe\u8ba1\u7d20\u6750\u63d0\u53d6<\/h4>\n<p># \u4ece\u590d\u6742\u80cc\u666f\u63d0\u53d6Logo\/\u56fe\u6807<br \/>\nremove(Image.open(&#039;screenshot.png&#039;)).save(&#039;logo.png&#039;)<\/p>\n<hr \/>\n<h3>\u603b\u7ed3\u4e0e\u5c55\u671b<\/h3>\n<p>Rembg\u6838\u5fc3\u4f18\u52bf\u56de\u987e&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u96f6\u95e8\u69db&#xff1a;5\u884c\u4ee3\u7801\u5b8c\u6210\u4e13\u4e1a\u62a0\u56fe<\/p>\n<\/li>\n<li>\n<p>\u5b8c\u5168\u514d\u8d39&#xff1a;\u5f00\u6e90\u65e0\u9650\u5236\u4f7f\u7528<\/p>\n<\/li>\n<li>\n<p>\u7cbe\u51c6\u9ad8\u6548&#xff1a;AI\u6a21\u578b\u8bc6\u522b\u51c6\u786e\u738795%&#043;<\/p>\n<\/li>\n<li>\n<p>\u6269\u5c55\u6027\u5f3a&#xff1a;\u652f\u6301\u6279\u91cf\u3001Web\u754c\u9762\u3001API\u96c6\u6210<\/p>\n<\/li>\n<\/ul>\n<p>\u9002\u7528\u4eba\u7fa4&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7535\u5546\u8fd0\u8425&#xff1a;\u6279\u91cf\u5904\u7406\u5546\u54c1\u56fe<\/p>\n<\/li>\n<li>\n<p>\u5e73\u9762\u8bbe\u8ba1\u5e08&#xff1a;\u5feb\u901f\u63d0\u53d6\u7d20\u6750<\/p>\n<\/li>\n<li>\n<p>\u81ea\u5a92\u4f53\u521b\u4f5c\u8005&#xff1a;\u5236\u4f5c\u5c01\u9762\u56fe<\/p>\n<\/li>\n<li>\n<p>\u5f00\u53d1\u8005&#xff1a;\u96c6\u6210\u5230\u81ea\u5df1\u7684\u5e94\u7528<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>&#x1f4ac;\u7ed3\u8bed<\/h3>\n<p>\u5982\u679c\u8fd9\u7bc7\u6559\u7a0b\u5e2e\u5230\u4e86\u4f60&#xff0c;\u522b\u5fd8\u4e86\u70b9\u8d5e&#x1f44d;\u6536\u85cf\u2b50\u4e09\u8fde\u652f\u6301&#xff01;\u6709\u95ee\u9898\u6b22\u8fce\u8bc4\u8bba\u533a\u4ea4\u6d41&#xff0c;\u6211\u4f1a\u7b2c\u4e00\u65f6\u95f4\u56de\u590d\u3002<\/p>\n<hr \/>\n<p>\u76f8\u5173\u94fe\u63a5&#xff1a;<\/p>\n<ul>\n<li>\n<p>Rembg GitHub&#xff1a;<span>https:\/\/github.com\/danielgatis\/rembg<\/span><\/p>\n<\/li>\n<li>\n<p>Streamlit\u5b98\u65b9\u6587\u6863&#xff1a;<span>https:\/\/docs.streamlit.io<\/span><\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<p>\u672c\u6587\u539f\u521b\u9996\u53d1\u4e8eCSDN&#xff0c;\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904 | \u6700\u540e\u66f4\u65b0&#xff1a;2026\u5e741\u6708<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u544a\u522bPS\u62a0\u56fe\u5669\u68a6<br \/>\n\u4f60\u662f\u5426\u8fd8\u62a0\u56fe\u9700\u8981\u7cbe\u7ec6\u8c03\u6574\u8fb9\u7f18&#xff0c;\u4e00\u5f20\u56fe\u81f3\u5c11\u8017\u65f610\u5206\u949f&#xff1b;\u5728\u7ebf\u62a0\u56fe\u5de5\u5177\u8981\u4e48\u6536\u8d39&#xff0c;\u8981\u4e48\u6709\u6c34\u5370\u9650\u5236\u3002\u4eca\u5929\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u6b3eGitHub 19K\u661f\u7684AI\u62a0\u56fe\u795e\u5668\u2014\u2014Rembg&#xff01;<br \/>\nRembg\u7684\u6838\u5fc3\u4f18\u52bf&#xff1a; \u2705 \u5b8c\u5168\u514d\u8d39\u5f00\u6e90&#xff0c;\u57fa\u4e8e\u5148\u8fdb\u7684U\u00b2-Net\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b  \u2705 \u79bb\u7ebf\u8fd0\u884c&#xff0c;\u4fdd\u62a4\u9690\u79c1\u6570\u636e\u5b89\u5168  \u2705 \u4e00\u952e\u53bb\u80cc\u666f&#xff0c;5\u884c\u4ee3\u7801\u641e\u5b9a\u4e13\u4e1a\u62a0\u56fe  \u2705 \u652f\u6301\u6279\u91cf\u5904\u7406&amp;#xff0<\/p>\n","protected":false},"author":2,"featured_media":62333,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[50],"topic":[],"class_list":["post-62334","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>2026\u5e74\u6700\u5f3aAI\u62a0\u56fe\u795e\u5668\uff01Rembg\u5f00\u6e90\u5de5\u5177\u4ece\u5165\u95e8\u5230\u8fdb\u9636\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/62334.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"2026\u5e74\u6700\u5f3aAI\u62a0\u56fe\u795e\u5668\uff01Rembg\u5f00\u6e90\u5de5\u5177\u4ece\u5165\u95e8\u5230\u8fdb\u9636\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u544a\u522bPS\u62a0\u56fe\u5669\u68a6 \u4f60\u662f\u5426\u8fd8\u62a0\u56fe\u9700\u8981\u7cbe\u7ec6\u8c03\u6574\u8fb9\u7f18&#xff0c;\u4e00\u5f20\u56fe\u81f3\u5c11\u8017\u65f610\u5206\u949f&#xff1b;\u5728\u7ebf\u62a0\u56fe\u5de5\u5177\u8981\u4e48\u6536\u8d39&#xff0c;\u8981\u4e48\u6709\u6c34\u5370\u9650\u5236\u3002\u4eca\u5929\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u6b3eGitHub 19K\u661f\u7684AI\u62a0\u56fe\u795e\u5668\u2014\u2014Rembg&#xff01; Rembg\u7684\u6838\u5fc3\u4f18\u52bf&#xff1a; \u2705 \u5b8c\u5168\u514d\u8d39\u5f00\u6e90&#xff0c;\u57fa\u4e8e\u5148\u8fdb\u7684U\u00b2-Net\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b \u2705 \u79bb\u7ebf\u8fd0\u884c&#xff0c;\u4fdd\u62a4\u9690\u79c1\u6570\u636e\u5b89\u5168 \u2705 \u4e00\u952e\u53bb\u80cc\u666f&#xff0c;5\u884c\u4ee3\u7801\u641e\u5b9a\u4e13\u4e1a\u62a0\u56fe \u2705 \u652f\u6301\u6279\u91cf\u5904\u7406&amp;#xff0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/62334.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-19T13:18:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260119131815-696e2f17629ac.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/62334.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/62334.html\",\"name\":\"2026\u5e74\u6700\u5f3aAI\u62a0\u56fe\u795e\u5668\uff01Rembg\u5f00\u6e90\u5de5\u5177\u4ece\u5165\u95e8\u5230\u8fdb\u9636\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-19T13:18:17+00:00\",\"dateModified\":\"2026-01-19T13:18:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/62334.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/62334.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/62334.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"2026\u5e74\u6700\u5f3aAI\u62a0\u56fe\u795e\u5668\uff01Rembg\u5f00\u6e90\u5de5\u5177\u4ece\u5165\u95e8\u5230\u8fdb\u9636\u5b9e\u6218\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"2026\u5e74\u6700\u5f3aAI\u62a0\u56fe\u795e\u5668\uff01Rembg\u5f00\u6e90\u5de5\u5177\u4ece\u5165\u95e8\u5230\u8fdb\u9636\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/62334.html","og_locale":"zh_CN","og_type":"article","og_title":"2026\u5e74\u6700\u5f3aAI\u62a0\u56fe\u795e\u5668\uff01Rembg\u5f00\u6e90\u5de5\u5177\u4ece\u5165\u95e8\u5230\u8fdb\u9636\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u544a\u522bPS\u62a0\u56fe\u5669\u68a6 \u4f60\u662f\u5426\u8fd8\u62a0\u56fe\u9700\u8981\u7cbe\u7ec6\u8c03\u6574\u8fb9\u7f18&#xff0c;\u4e00\u5f20\u56fe\u81f3\u5c11\u8017\u65f610\u5206\u949f&#xff1b;\u5728\u7ebf\u62a0\u56fe\u5de5\u5177\u8981\u4e48\u6536\u8d39&#xff0c;\u8981\u4e48\u6709\u6c34\u5370\u9650\u5236\u3002\u4eca\u5929\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u6b3eGitHub 19K\u661f\u7684AI\u62a0\u56fe\u795e\u5668\u2014\u2014Rembg&#xff01; Rembg\u7684\u6838\u5fc3\u4f18\u52bf&#xff1a; \u2705 \u5b8c\u5168\u514d\u8d39\u5f00\u6e90&#xff0c;\u57fa\u4e8e\u5148\u8fdb\u7684U\u00b2-Net\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b \u2705 \u79bb\u7ebf\u8fd0\u884c&#xff0c;\u4fdd\u62a4\u9690\u79c1\u6570\u636e\u5b89\u5168 \u2705 \u4e00\u952e\u53bb\u80cc\u666f&#xff0c;5\u884c\u4ee3\u7801\u641e\u5b9a\u4e13\u4e1a\u62a0\u56fe \u2705 \u652f\u6301\u6279\u91cf\u5904\u7406&amp;#xff0","og_url":"https:\/\/www.wsisp.com\/helps\/62334.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-19T13:18:17+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260119131815-696e2f17629ac.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/62334.html","url":"https:\/\/www.wsisp.com\/helps\/62334.html","name":"2026\u5e74\u6700\u5f3aAI\u62a0\u56fe\u795e\u5668\uff01Rembg\u5f00\u6e90\u5de5\u5177\u4ece\u5165\u95e8\u5230\u8fdb\u9636\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-19T13:18:17+00:00","dateModified":"2026-01-19T13:18:17+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/62334.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/62334.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/62334.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"2026\u5e74\u6700\u5f3aAI\u62a0\u56fe\u795e\u5668\uff01Rembg\u5f00\u6e90\u5de5\u5177\u4ece\u5165\u95e8\u5230\u8fdb\u9636\u5b9e\u6218"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/62334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=62334"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/62334\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/62333"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=62334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=62334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=62334"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=62334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}