{"id":3884,"date":"2026-01-31T22:33:18","date_gmt":"2026-01-31T22:33:18","guid":{"rendered":"https:\/\/umaax.com\/ruheanzhuangheshiyongdragganzaixianhebendiyunxingde4zhongfan\/"},"modified":"2026-01-31T22:33:18","modified_gmt":"2026-01-31T22:33:18","slug":"ruheanzhuangheshiyongdragganzaixianhebendiyunxingde4zhongfan","status":"publish","type":"post","link":"https:\/\/umaax.com\/en\/ruheanzhuangheshiyongdragganzaixianhebendiyunxingde4zhongfan\/","title":{"rendered":"\u5982\u4f55\u5b89\u88c5\u548c\u4f7f\u7528DragGAN\uff1f\u5728\u7ebf\u548c\u672c\u5730\u8fd0\u884c\u76844\u79cd\u65b9\u6cd5"},"content":{"rendered":"<p>DragGAN\u662f\u4e00\u4e2a\u70ed\u95e8\u7684\u5f00\u6e90AI\u56fe\u50cf\u9879\u76ee\u548c\u7814\u7a76\uff0c\u53ef\u4ee5\u901a\u8fc7\u62d6\u52a8\u5bf9\u56fe\u50cf\u4e2d\u7684\u9759\u6001\u5bf9\u8c61\u7684\u59ff\u52bf\u3001\u5f62\u72b6\u3001\u8868\u60c5\u548c\u65b9\u5411\u7b49\u8fdb\u884c\u7075\u6d3b\u800c\u7cbe\u786e\u7684\u63a7\u5236\uff0c\u53ef\u4ee5\u5b9e\u73b0\u6bd4\u5982\u5c06\u52a8\u7269\u7684\u5634\u5f20\u5f00\u3001\u5c06\u6c7d\u8f66\u7684\u89d2\u5ea6\u66f4\u6539\u3001\u5c06\u98ce\u666f\u4e2d\u7684\u5c71\u4f53\u62d4\u9ad8\u7b49\u64cd\u4f5c\u3002\u8fd1\u671f\uff0cDragGAN\u7684\u56e2\u961f\u5728GitHub\u4e0a\u7ebf\u5e76\u5f00\u6e90\u4e86\u5176\u5b98\u65b9\u7684\u5b9e\u73b0\u9879\u76ee\uff0c\u672c\u7bc7\u6587\u7ae0\u5c06\u4ecb\u7ecd\u5982\u4f55\u8fd0\u884c\u3001\u5b89\u88c5\u548c\u4f7f\u7528DragGAN\uff0c\u5305\u542b\u5728\u7ebf\u8fd0\u884c\u548c\u672c\u5730\u4f7f\u7528\u7684\u591a\u79cd\u65b9\u6cd5\u3002<\/p>\n<p> <img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-3357\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2023\/07\/draggan-demo.jpeg\"  alt=\"DragGAN\u6f14\u793a\u6548\u679c\" width=\"800\" height=\"400\" \/> <\/p>\n<div class=\"bg-light rounded p-2\">\n<p><strong>\u6587\u7ae0\u76ee\u5f55\uff1a<\/strong><\/p>\n<ul>\n<li>\u5728\u7ebf\u8fd0\u884c\u548c\u4f7f\u7528DragGAN\n<ul>\n<li>\u901a\u8fc7OpenXLab\u6d66\u6e90\u8fd0\u884c<\/li>\n<li>\u901a\u8fc7Hugging Face\u8fd0\u884c<\/li>\n<li>\u901a\u8fc7Google Colab\u4f7f\u7528<\/li>\n<\/ul>\n<\/li>\n<li>\u672c\u5730\u5b89\u88c5\u548c\u4f7f\u7528DragGAN<\/li>\n<\/ul><\/div>\n<h2 id=\"run-draggan-online\">\u5728\u7ebf\u8fd0\u884c\u548c\u4f7f\u7528DragGAN<\/h2>\n<p>\u5982\u679c\u4f60\u53ea\u60f3\u4e0a\u624b\u8bd5\u8bd5\u770bDragGAN\u7684\u6548\u679c\uff0c\u90a3\u4e48\u5728\u7ebf\u8fd0\u884cDragGAN\u662f\u4e00\u4e2a\u66f4\u597d\u7684\u9009\u62e9\uff0c\u6211\u4eec\u8fd9\u91cc\u5c06\u4ecb\u7ecd\u4f7f\u7528OpenXLab\u3001Hugging Face\u3001\u4ee5\u53caGoogle Colab\u7b493\u4e2a\u65b9\u6cd5\u6765\u5728\u7ebf\u4f7f\u7528DragGAN\u3002<\/p>\n<h3 id=\"openxlab-draggan\">\u901a\u8fc7OpenXLab\u6d66\u6e90\u8fd0\u884c<\/h3>\n<p>OpenXLab\u6d66\u6e90\u662f\u7531\u300c\u4e0a\u6d77\u4eba\u5de5\u667a\u80fd\u5b9e\u9a8c\u5ba4\u300d\u63a8\u51fa\u7684AI\u6a21\u578b\u793e\u533a\u548c\u6258\u7ba1\u5e73\u53f0\uff0c\u7c7b\u4f3c\u4e8e\u4e0b\u6587\u5c06\u4ecb\u7ecd\u7684Hugging Face\u3002DragGAN\u7684\u56e2\u961f\u5728OpenXLab\u4e2d\u63d0\u4f9b\u4e86\u5b98\u65b9\u5bf9DragGAN\u9879\u76ee\u7684\u5b9e\u73b0\uff0c\u7528\u6237\u53ef\u4ee5\u8bbf\u95ee\u8be5\u7f51\u7ad9\uff0c\u8fd0\u884cDragGAN\u6d4b\u8bd5\u62d6\u62fd\u6548\u679c\u3002<\/p>\n<p>\u8fd0\u884c\u5730\u5740\uff1ahttps:\/\/openxlab.org.cn\/apps\/detail\/XingangPan\/DragGAN<\/p>\n<p> <img decoding=\"async\" class=\"alignnone size-full wp-image-3337\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2023\/07\/openxlab-draggan.png\"  alt=\"OpenXLab DragGAN\" width=\"800\" height=\"477\" \/> <\/p>\n<h3 id=\"hugging-face-draggan\">\u901a\u8fc7Hugging Face\u8fd0\u884c<\/h3>\n<p>Hugging Face\u662f\u4e00\u4e2a\u77e5\u540d\u7684\u5f00\u6e90AI\u6a21\u578b\u793e\u533a\uff0c\u8be5\u5e73\u53f0\u6c47\u96c6\u4e86\u5404\u79cd\u7c7b\u578b\u7684AI\u6a21\u578b\u3001\u6570\u636e\u96c6\u548c\u8fd0\u884c\u7a7a\u95f4\u3002DragGAN\u9879\u76ee\u5f00\u6e90\u4e0a\u7ebf\u540e\uff0c\u5176\u5b98\u65b9\u56e2\u961f\u7b2c\u4e00\u65f6\u95f4\u5728Hugging Face\u4e0a\u521b\u5efa\u4e86\u4e00\u4e2a\u9879\u76ee\u7a7a\u95f4\uff0c\u611f\u5174\u8da3\u7684\u7528\u6237\u53ef\u4ee5\u968f\u65f6\u8bbf\u95ee\uff0c\u6d4b\u8bd5\u8fd0\u884c\u6548\u679c\u3002<\/p>\n<p>\u8fd0\u884c\u5730\u5740\uff1ahttps:\/\/huggingface.co\/spaces\/DragGan\/DragGan<\/p>\n<p> <img decoding=\"async\" class=\"alignnone size-full wp-image-3341\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2023\/07\/hugging-face-draggan.jpeg\"  alt=\"Hugging Face DragGAN\" width=\"800\" height=\"467\" \/> <\/p>\n<h3 id=\"google-colab-draggan\">\u901a\u8fc7Google Colab\u4f7f\u7528<\/h3>\n<p>Google Colab\u662f\u7531\u8c37\u6b4c\u63a8\u51fa\u7684\uff0c\u5141\u8bb8\u7528\u6237\u4f7f\u7528Jupyter notebook\u73af\u5883\u7f16\u5199\u3001\u8fd0\u884c\u548c\u5171\u4eabPython\u4ee3\u7801\u7684\u4e91\u7aef\u5e73\u53f0\u3002Google Colab\u662f\u4e00\u9879\u514d\u8d39\u670d\u52a1\uff0c\u4e3a\u7528\u6237\u63d0\u4f9b\u865a\u62df\u673a\uff0c\u5305\u62ec\u8bbf\u95ee\u9ad8\u6027\u80fdCPU\u3001GPU\u548cTPU\u8d44\u6e90\uff0c\u4ee5\u53ca\u9884\u88c5\u5e93\uff0c\u5982TensorFlow\u3001PyTorch\u7b49\u3002\u5982\u679c\u4f60\u662f\u4e00\u4f4d\u6280\u672f\u4eba\u5458\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u9009\u62e9\u8be5\u65b9\u6cd5\uff0c\u6253\u5f00\u4e0b\u65b9\u7684\u8fd0\u884c\u5730\u5740\uff0c\u7136\u540e\u5728\u8bbe\u7f6e\u4e2d\u9009\u62e9GPU\u5e76\u8fd0\u884c\u5b89\u88c5\u4ee3\u7801\u548c\u6f14\u793a\u4ee3\u7801\u5757\u5373\u53ef\u3002<\/p>\n<p>\u8fd0\u884c\u5730\u5740\uff1ahttps:\/\/colab.research.google.com\/drive\/1mey-IXPwQC_qSthI5hO-LTX7QL4ivtPh?usp=sharing<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3342\" src=\"https:\/\/ai-bot.cn\/wp-content\/uploads\/2023\/07\/google-colab-draggan.jpeg\"  alt=\"Google Colab\u8fd0\u884cDragGAN\" width=\"800\" height=\"466\" \/> <\/p>\n<h2 id=\"run-draggan-local\">\u672c\u5730\u5b89\u88c5\u548c\u4f7f\u7528DragGAN<\/h2>\n<p>\u5982\u679c\u4f60\u60f3\u8981\u5728\u81ea\u5df1\u7684\u7535\u8111\u4e0a\u672c\u5730\u5b89\u88c5\u548c\u90e8\u7f72DragGAN\uff0c\u53ea\u9700\u6839\u636eDragGAN GitHub\u9879\u76ee\u4e0a\u7684\u6307\u793a\u6765\u64cd\u4f5c\u5373\u53ef\u3002\u64cd\u4f5c\u524d\u8bf7\u5148\u4e0b\u8f7d\u5b89\u88c5Git\u3001Python\u548cConda\uff0c\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<h3>\u7b2c1\u6b65\uff1a\u514b\u9686DragGAN\u5b98\u65b9\u7684\u9879\u76ee<\/h3>\n<p>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\uff0c\u4f7f\u7528git\u547d\u4ee4\uff0c<code>git clone https:\/\/github.com\/XingangPan\/DragGAN.git<\/code>\u514b\u9686\u5b98\u65b9\u9879\u76ee\u5230\u4f60\u60f3\u8981\u7684\u6587\u4ef6\u5939\u3002<\/p>\n<h3>\u7b2c2\u6b65\uff1a\u8bbe\u7f6eCUDA\u548c\u5b89\u88c5Python\u73af\u5883<\/h3>\n<ol>\n<li>\u514b\u9686\u5b8c\u6bd5\u540e\uff0c\u4f7f\u7528cd\u547d\u4ee4<code>cd DragGAN<\/code>\u8fdb\u5165\u8be5\u6587\u4ef6\u5939<\/li>\n<li>\u7136\u540e\u8bbe\u7f6econda\u73af\u5883\uff1a<code>conda env create -f environment.yml<\/code>\uff0c\uff08\u6ce8\uff1a\u5982\u679c\u4f60\u662f\u8fd0\u884c\u7684Mac\uff0c\u90a3\u4e48\u8bf7\u7f16\u8f91environment.yml\u6587\u4ef6\u5e76\u5220\u9664<code>- cudatoolkit=11.1<\/code>\uff0c\u56e0\u4e3aMac\u6ca1\u6709\u91c7\u7528\u82f1\u4f1f\u8fbe\u7684GPU\u3002\u53e6\u5916\uff0cMac\u8fd8\u9700\u8bbe\u7f6e\u4f7f\u7528CPU\u8fd0\u884c\uff0c\u5728\u7ec8\u7aef\u4e2d\u914d\u7f6e<code>export PYTORCH_ENABLE_MPS_FALLBACK=1<\/code><\/li>\n<li>\u6fc0\u6d3bconda\u73af\u5883\uff1a<code>conda activate stylegan3<\/code><\/li>\n<li>\u5b89\u88c5\u76f8\u5173\u4f9d\u8d56\u9879\uff1a<code>pip install -r requirements<\/code><\/li>\n<\/ol>\n<h3>\u7b2c3\u6b65\uff1a\u4e0b\u8f7d\u9884\u8bad\u7ec3\u7684\u6a21\u578b<\/h3>\n<p>\u4f7f\u7528\u547d\u4ee4<code>python scripts\/download_model.py<\/code>\u4e0b\u8f7d<\/p>\n<h3>\u7b2c4\u6b65\uff1a\u8bbe\u7f6eDragGAN GUI\u754c\u9762\u5e76\u8fd0\u884c<\/h3>\n<p>\u4f7f\u7528\u547d\u4ee4<code>python visualizer_drag_gradio.py<\/code>\u4e0b\u8f7d\u57fa\u4e8eGradio\u7684\u754c\u9762\uff0c\u4e0b\u8f7d\u5b89\u88c5\u5b8c\u540e\uff0c\u590d\u5236\u7ec8\u7aef\u91cc\u9762\u7684Running on local URL\u91cc\u9762\u7684\u672c\u5730\u5730\u5740\u3002<code>http:\/\/127.0.0.1:7860<\/code>\u4fbf\u53ef\u4ee5\u5728\u672c\u5730\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884c\u4e86\u3002<\/p>\n<p>\u4ee5\u4e0a\u4fbf\u662fAI\u5de5\u5177\u96c6\u4e3a\u5927\u5bb6\u6574\u7406\u7684\u5982\u4f55\u8fd0\u884cDragGAN\u7684\u65b9\u6cd5\uff0c\u5982\u679c\u4f60\u5728\u5b89\u88c5\u548c\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u6709\u4f55\u95ee\u9898\uff0c\u53ef\u4ee5\u5728\u8bc4\u8bba\u533a\u7559\u8a00\u6216\u7740\u5728DragGAN\u7684\u5b98\u65b9GitHub\u9879\u76ee\u5bfb\u6c42\u5e2e\u52a9\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>DragGAN\u662f\u4e00\u4e2a\u70ed\u95e8\u7684\u5f00\u6e90AI\u56fe\u50cf\u9879\u76ee\u548c\u7814\u7a76\uff0c\u53ef\u4ee5\u901a\u8fc7\u62d6\u52a8\u5bf9\u56fe\u50cf\u4e2d\u7684\u9759\u6001\u5bf9\u8c61\u7684\u59ff\u52bf\u3001\u5f62\u72b6\u3001\u8868\u60c5\u548c\u65b9\u5411\u7b49\u8fdb\u884c\u7075\u6d3b\u800c\u7cbe\u786e\u7684\u63a7\u5236\uff0c\u53ef\u4ee5\u5b9e\u73b0\u6bd4\u5982\u5c06\u52a8\u7269\u7684\u5634\u5f20\u5f00\u3001\u5c06\u6c7d\u8f66\u7684\u89d2\u5ea6\u66f4\u6539\u3001\u5c06\u98ce\u666f\u4e2d\u7684\u5c71\u4f53\u62d4\u9ad8\u7b49\u64cd\u4f5c\u3002\u8fd1\u671f\uff0cDragGAN\u7684\u56e2\u961f\u5728GitHub\u4e0a\u7ebf\u5e76\u5f00\u6e90\u4e86\u5176\u5b98\u65b9\u7684\u5b9e\u73b0\u9879\u76ee\uff0c\u672c\u7bc7\u6587\u7ae0\u5c06\u4ecb\u7ecd\u5982\u4f55\u8fd0\u884c\u3001\u5b89\u88c5\u548c\u4f7f\u7528DragGAN\uff0c\u5305\u542b\u5728\u7ebf\u8fd0\u884c\u548c\u672c\u5730\u4f7f\u7528\u7684\u591a\u79cd\u65b9\u6cd5\u3002 \u6587\u7ae0\u76ee\u5f55\uff1a \u5728\u7ebf\u8fd0\u884c\u548c\u4f7f\u7528DragGAN \u901a\u8fc7OpenXLab\u6d66\u6e90\u8fd0\u884c \u901a\u8fc7Hugging Face\u8fd0\u884c \u901a\u8fc7Google Colab\u4f7f\u7528 \u672c\u5730\u5b89\u88c5\u548c\u4f7f\u7528DragGAN \u5728\u7ebf\u8fd0\u884c\u548c\u4f7f\u7528DragGAN \u5982\u679c\u4f60\u53ea\u60f3\u4e0a\u624b\u8bd5\u8bd5\u770bDragGAN\u7684\u6548\u679c\uff0c\u90a3\u4e48\u5728\u7ebf\u8fd0\u884cDragGAN\u662f\u4e00\u4e2a\u66f4\u597d\u7684\u9009\u62e9\uff0c\u6211\u4eec\u8fd9\u91cc\u5c06\u4ecb\u7ecd\u4f7f\u7528OpenXLab\u3001Hugging Face\u3001\u4ee5\u53caGoogle Colab\u7b493\u4e2a\u65b9\u6cd5\u6765\u5728\u7ebf\u4f7f\u7528DragGAN\u3002 \u901a\u8fc7OpenXLab\u6d66\u6e90\u8fd0\u884c OpenXLab\u6d66\u6e90\u662f\u7531\u300c\u4e0a\u6d77\u4eba\u5de5\u667a\u80fd\u5b9e\u9a8c\u5ba4\u300d\u63a8\u51fa\u7684AI\u6a21\u578b\u793e\u533a\u548c\u6258\u7ba1\u5e73\u53f0\uff0c\u7c7b\u4f3c\u4e8e\u4e0b\u6587\u5c06\u4ecb\u7ecd\u7684Hugging Face\u3002DragGAN\u7684\u56e2\u961f\u5728OpenXLab\u4e2d\u63d0\u4f9b\u4e86\u5b98\u65b9\u5bf9DragGAN\u9879\u76ee\u7684\u5b9e\u73b0\uff0c\u7528\u6237\u53ef\u4ee5\u8bbf\u95ee\u8be5\u7f51\u7ad9\uff0c\u8fd0\u884cDragGAN\u6d4b\u8bd5\u62d6\u62fd\u6548\u679c\u3002 \u8fd0\u884c\u5730\u5740\uff1ahttps:\/\/openxlab.org.cn\/apps\/detail\/XingangPan\/DragGAN \u901a\u8fc7Hugging Face\u8fd0\u884c Hugging Face\u662f\u4e00\u4e2a\u77e5\u540d\u7684\u5f00\u6e90AI\u6a21\u578b\u793e\u533a\uff0c\u8be5\u5e73\u53f0\u6c47\u96c6\u4e86\u5404\u79cd\u7c7b\u578b\u7684AI\u6a21\u578b\u3001\u6570\u636e\u96c6\u548c\u8fd0\u884c\u7a7a\u95f4\u3002DragGAN\u9879\u76ee\u5f00\u6e90\u4e0a\u7ebf\u540e\uff0c\u5176\u5b98\u65b9\u56e2\u961f\u7b2c\u4e00\u65f6\u95f4\u5728Hugging Face\u4e0a\u521b\u5efa\u4e86\u4e00\u4e2a\u9879\u76ee\u7a7a\u95f4\uff0c\u611f\u5174\u8da3\u7684\u7528\u6237\u53ef\u4ee5\u968f\u65f6\u8bbf\u95ee\uff0c\u6d4b\u8bd5\u8fd0\u884c\u6548\u679c\u3002 \u8fd0\u884c\u5730\u5740\uff1ahttps:\/\/huggingface.co\/spaces\/DragGan\/DragGan \u901a\u8fc7Google Colab\u4f7f\u7528 Google Colab\u662f\u7531\u8c37\u6b4c\u63a8\u51fa\u7684\uff0c\u5141\u8bb8\u7528\u6237\u4f7f\u7528Jupyter notebook\u73af\u5883\u7f16\u5199\u3001\u8fd0\u884c\u548c\u5171\u4eabPython\u4ee3\u7801\u7684\u4e91\u7aef\u5e73\u53f0\u3002Google Colab\u662f\u4e00\u9879\u514d\u8d39\u670d\u52a1\uff0c\u4e3a\u7528\u6237\u63d0\u4f9b\u865a\u62df\u673a\uff0c\u5305\u62ec\u8bbf\u95ee\u9ad8\u6027\u80fdCPU\u3001GPU\u548cTPU\u8d44\u6e90\uff0c\u4ee5\u53ca\u9884\u88c5\u5e93\uff0c\u5982TensorFlow\u3001PyTorch\u7b49\u3002\u5982\u679c\u4f60\u662f\u4e00\u4f4d\u6280\u672f\u4eba\u5458\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u9009\u62e9\u8be5\u65b9\u6cd5\uff0c\u6253\u5f00\u4e0b\u65b9\u7684\u8fd0\u884c\u5730\u5740\uff0c\u7136\u540e\u5728\u8bbe\u7f6e\u4e2d\u9009\u62e9GPU\u5e76\u8fd0\u884c\u5b89\u88c5\u4ee3\u7801\u548c\u6f14\u793a\u4ee3\u7801\u5757\u5373\u53ef\u3002 \u8fd0\u884c\u5730\u5740\uff1ahttps:\/\/colab.research.google.com\/drive\/1mey-IXPwQC_qSthI5hO-LTX7QL4ivtPh?usp=sharing \u672c\u5730\u5b89\u88c5\u548c\u4f7f\u7528DragGAN \u5982\u679c\u4f60\u60f3\u8981\u5728\u81ea\u5df1\u7684\u7535\u8111\u4e0a\u672c\u5730\u5b89\u88c5\u548c\u90e8\u7f72DragGAN\uff0c\u53ea\u9700\u6839\u636eDragGAN GitHub\u9879\u76ee\u4e0a\u7684\u6307\u793a\u6765\u64cd\u4f5c\u5373\u53ef\u3002\u64cd\u4f5c\u524d\u8bf7\u5148\u4e0b\u8f7d\u5b89\u88c5Git\u3001Python\u548cConda\uff0c\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a \u7b2c1\u6b65\uff1a\u514b\u9686DragGAN\u5b98\u65b9\u7684\u9879\u76ee \u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\uff0c\u4f7f\u7528git\u547d\u4ee4\uff0cgit clone https:\/\/github.com\/XingangPan\/DragGAN.git\u514b\u9686\u5b98\u65b9\u9879\u76ee\u5230\u4f60\u60f3\u8981\u7684\u6587\u4ef6\u5939\u3002 \u7b2c2\u6b65\uff1a\u8bbe\u7f6eCUDA\u548c\u5b89\u88c5Python\u73af\u5883 \u514b\u9686\u5b8c\u6bd5\u540e\uff0c\u4f7f\u7528cd\u547d\u4ee4cd DragGAN\u8fdb\u5165\u8be5\u6587\u4ef6\u5939 \u7136\u540e\u8bbe\u7f6econda\u73af\u5883\uff1aconda env create -f environment.yml\uff0c\uff08\u6ce8\uff1a\u5982\u679c\u4f60\u662f\u8fd0\u884c\u7684Mac\uff0c\u90a3\u4e48\u8bf7\u7f16\u8f91environment.yml\u6587\u4ef6\u5e76\u5220\u9664- cudatoolkit=11.1\uff0c\u56e0\u4e3aMac\u6ca1\u6709\u91c7\u7528\u82f1\u4f1f\u8fbe\u7684GPU\u3002\u53e6\u5916\uff0cMac\u8fd8\u9700\u8bbe\u7f6e\u4f7f\u7528CPU\u8fd0\u884c\uff0c\u5728\u7ec8\u7aef\u4e2d\u914d\u7f6eexport PYTORCH_ENABLE_MPS_FALLBACK=1 \u6fc0\u6d3bconda\u73af\u5883\uff1aconda activate stylegan3 \u5b89\u88c5\u76f8\u5173\u4f9d\u8d56\u9879\uff1apip install -r requirements \u7b2c3\u6b65\uff1a\u4e0b\u8f7d\u9884\u8bad\u7ec3\u7684\u6a21\u578b<\/p>","protected":false},"author":1,"featured_media":3885,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_tocer_settings":[],"footnotes":""},"categories":[85],"tags":[86],"class_list":["post-3884","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","tag-aijiaocheng"],"_links":{"self":[{"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/posts\/3884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/comments?post=3884"}],"version-history":[{"count":0,"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/posts\/3884\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/media\/3885"}],"wp:attachment":[{"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/media?parent=3884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/categories?post=3884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/umaax.com\/en\/wp-json\/wp\/v2\/tags?post=3884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}