{"id":20310,"date":"2025-06-01T14:26:38","date_gmt":"2025-06-01T06:26:38","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=20310"},"modified":"2025-06-01T14:27:57","modified_gmt":"2025-06-01T06:27:57","slug":"kohya_ss-%e6%b1%89%e5%8c%96","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=20310","title":{"rendered":"Kohya_ss \u6c49\u5316"},"content":{"rendered":"<p><strong>\u57fa\u4e8e Kohya_ss v25.0.3 \u9a8c\u8bc1\uff0c\u4e8e 2025.6.1<\/strong><\/p>\n<p>Kohya_ss \u672c\u8eab\u63d0\u4f9b\u4e86\u6c49\u5316\u6587\u4ef6\uff0cKohya_ss \u672c\u8eab\u662f\u4e2a Python \u7a0b\u5e8f\uff0c\u542f\u52a8\u7684\u65f6\u5019\u4f20\u9012\u53c2\u6570\u63a7\u5236\u8bed\u8a00\uff0c\u8fd9\u4e2a Python \u7a0b\u5e8f\u662f\u7531\u4e00\u4e2a\u811a\u672c\u6587\u4ef6\u8c03\u7528\u7684\uff0c\u6240\u4ee5\u8981\u6c49\u5316\u7684\u8bdd\uff0c\u6539\u4e00\u4e0b\u8fd9\u4e2a\u542f\u52a8\u811a\u672c\u8c03\u7528 Python \u7a0b\u5e8f\u7684\u53c2\u6570\u5c31\u884c\u3002<br \/>\n\u6211\u8fd9\u91cc\u662f Windows\uff0c\u6539 gui.bat \u6587\u4ef6<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/06\/image-1748758814744.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 500px; --smush-placeholder-aspect-ratio: 500\/384;\" \/><\/p>\n<p>\u5185\u5bb9\u6362\u6210\u4e0b\u9762\u7684<\/p>\n<pre><code class=\"language-bash\">@echo off\n\nset PYTHON_VER=3.10.9\n\n:: Deactivate the virtual environment\ncall .\\venv\\Scripts\\deactivate.bat\n\n:: Activate the virtual environment\ncall .\\venv\\Scripts\\activate.bat\n\n:: Update pip to latest version\npython -m pip install --upgrade pip -q\n\nset PATH=%PATH%;%~dp0venv\\Lib\\site-packages\\torch\\lib\n\necho Starting the GUI... this might take some time...\n\n:skip_validation\n\nset ARGS=--language zh-CN\n\n:: If the exit code is 0, run the kohya_gui.py script with the command-line arguments\nif %errorlevel% equ 0 (\n    REM Check if the batch was started via double-click\n    IF \/i &quot;%comspec% \/c %~0 &quot; equ &quot;%cmdcmdline:&quot;=%&quot; (\n        REM echo This script was started by double clicking.\n        cmd \/k python.exe kohya_gui.py %ARGS% %*\n    ) ELSE (\n        REM echo This script was started from a command prompt.\n        python.exe kohya_gui.py %ARGS% %*\n    )\n)<\/code><\/pre>\n<p>\u8fd9\u91cc\u8bbe\u7f6e\u4e86\u4e00\u4e2a <strong>ARGS<\/strong> \u53d8\u91cf\uff0c\u503c\u4e3a <strong>&#8211;language zh-CN<\/strong>\uff0c\u7136\u540e\u628a ARGS \u4f20\u9012\u7ed9\u8c03\u7528 Python \u811a\u672c\u7684\u5730\u65b9\uff1a<strong>python.exe kohya_gui.py %ARGS% %*<\/strong>\uff0c\u8fd9\u6837\u6267\u884c\u7684\u65f6\u5019\u5c31\u5e26\u4e0a\u8bed\u8a00\u53c2\u6570\u4e86\u3002<br \/>\n\u9ed8\u8ba4\u901a\u8fc7\u6267\u884c\u8fd9\u4e2a\u811a\u672c\u542f\u52a8\u540e\uff0c\u5b83\u4e0d\u4f1a\u81ea\u52a8\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u5982\u679c\u8981\u81ea\u52a8\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8fd8\u53ef\u4ee5\u52a0\u4e0a\u4e00\u4e2a <strong>&#8211;inbrowser<\/strong> \u53c2\u6570\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/06\/image-1748759064156.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 648px; --smush-placeholder-aspect-ratio: 648\/317;\" \/><\/p>\n<p>\u518d\u542f\u52a8\u540e\uff0c\u754c\u9762\u5c31\u6709\u6c49\u5316\u4e86\uff08\u90e8\u5206\u6c49\u5316\uff09<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/06\/image-1748759127557.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 2071px; --smush-placeholder-aspect-ratio: 2071\/1182;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u4e8e Kohya_ss v25.0.3 \u9a8c\u8bc1\uff0c\u4e8e 2025.6.1 Kohya_ss \u672c\u8eab\u63d0\u4f9b\u4e86\u6c49\u5316\u6587\u4ef6\uff0cKo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[642,1,643],"tags":[],"class_list":["post-20310","post","type-post","status-publish","format-standard","hentry","category-aigc","category-all","category-stable-diffusion"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/20310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20310"}],"version-history":[{"count":3,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/20310\/revisions"}],"predecessor-version":[{"id":20316,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/20310\/revisions\/20316"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}