{"id":18439172,"url":"https://github.com/wsh032/kohya-config-webui","last_synced_at":"2025-07-16T12:33:46.788Z","repository":{"id":153972946,"uuid":"627931241","full_name":"WSH032/kohya-config-webui","owner":"WSH032","description":"A WebUI for making config files used by kohya_sd_script.   一个用于生成kohya-ss训练脚本使用的toml配置文件的WebUI","archived":false,"fork":false,"pushed_at":"2023-08-01T22:41:45.000Z","size":82,"stargazers_count":96,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T01:01:39.042Z","etag":null,"topics":["colab","kohya-sd-script","stable-diffusion","toml","webui"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WSH032.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-14T14:13:06.000Z","updated_at":"2025-02-21T13:25:28.000Z","dependencies_parsed_at":"2024-11-06T06:27:25.313Z","dependency_job_id":"ba27b994-2546-490e-83f8-e3fa8e3b97a4","html_url":"https://github.com/WSH032/kohya-config-webui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WSH032%2Fkohya-config-webui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WSH032%2Fkohya-config-webui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WSH032%2Fkohya-config-webui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WSH032%2Fkohya-config-webui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WSH032","download_url":"https://codeload.github.com/WSH032/kohya-config-webui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247732653,"owners_count":20986897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["colab","kohya-sd-script","stable-diffusion","toml","webui"],"created_at":"2024-11-06T06:23:38.338Z","updated_at":"2025-04-07T21:32:13.892Z","avatar_url":"https://github.com/WSH032.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kohya-config-webui\nA WebUI for making config files used by kohya_sd_script\n![9@`$94}$U~DCAQCEA }20AX](https://user-images.githubusercontent.com/126865849/232077304-cb04f8c4-e815-4de8-a5ec-e9116413c5e2.png)\n\n## 现在我们有什么？\n目前，我为kohya-lora-dreambooth训练中较为常用、实用的训练参数，使用gradio和toml库，编写了一个交互式的WebUI生成工具，可以在带有python环境的windows和Colab环境中快速部署。\n\n使用本项目，你可以快速指定训练参数，并生成config_file.toml和sample_prompt.txt。\n\n\n如果你觉得此项目有用，可以给我一颗小星星，非常感谢你⭐\n\n---\n\n| Notebook Name | Description | Link | Old-Version |\n| --- | --- | --- | --- |\n| [Colab_Lora_train](https://github.com/WSH032/lora-scripts/) | 基于[Akegarasu/lora-scripts](https://github.com/Akegarasu/lora-scripts)的定制化Colab notebook | [![](https://img.shields.io/static/v1?message=Open%20in%20Colab\u0026logo=googlecolab\u0026labelColor=5c5c5c\u0026color=0f80c1\u0026label=%20\u0026style=flat)](https://colab.research.google.com/github/WSH032/lora-scripts/blob/main/Colab_Lora_train.ipynb) | [![](https://img.shields.io/static/v1?message=Older%20Version\u0026logo=googlecolab\u0026labelColor=5c5c5c\u0026color=e74c3c\u0026label=%20\u0026style=flat)](https://colab.research.google.com/drive/1_f0qJdM43BSssNJWtgjIlk9DkIzLPadx) | \n| [kohya_train_webui](https://github.com/WSH032/kohya-config-webui) `NEW` | 基于[WSH032/kohya-config-webui](https://github.com/WSH032/kohya-config-webui)的WebUI版Colab notebook | [![](https://img.shields.io/static/v1?message=Open%20in%20Colab\u0026logo=googlecolab\u0026labelColor=5c5c5c\u0026color=0f80c1\u0026label=%20\u0026style=flat)](https://colab.research.google.com/github/WSH032/kohya-config-webui/blob/main/kohya_train_webui.ipynb) |\n\n\n## 使用方法\n\n### （一）Colab版本（带有完整训练环境）：\n\n[![](https://img.shields.io/static/v1?message=Open%20in%20Colab\u0026logo=googlecolab\u0026labelColor=5c5c5c\u0026color=0f80c1\u0026label=%20\u0026style=flat)](https://colab.research.google.com/github/WSH032/kohya-config-webui/blob/main/kohya_train_webui.ipynb)\n\n### （二）AUTOMATIC1111/stable-diffusion-webui插件：\n\n`https://github.com/WSH032/kohya-config-webui.git`\n\n将这个仓库连接复制到SD-WebUi的`扩展`-\u003e`从网址安装`界面下载即可\n\n### （三）直接下载：\n\n运行以下代码，或直接从github上下载zip并解压（直接下载将无法使用[update.bat](update.bat)），\n```Shell\ngit clone https://github.com/WSH032/kohya-config-webui.git\n```\n运行目录下的[install_webui.ps1](install_webui.ps1)在虚拟环境中安装gradio和toml,或者\n```Python\npip install  gradio\u003e=3.24.1\npip install  toml\u003e=0.10.2\n```\n运行[run_webui.ps1](run_webui.ps1)，或者\n```Python\npython .\\module\\kohya_config_webui.py\n```\n\n\n# Todo\n- [x] 增加上一次参数保存功能\n- [ ] 增加dataset_config.toml生成功能\n\n# Credit\n\n**Based on the work of [kohya-ss](https://github.com/kohya-ss/sd-scripts) , [Linaqruf](https://github.com/Linaqruf/kohya-trainer). Thanks to them.**\n- 这个项目使用的的训练脚本来自[kohya-ss](https://github.com/kohya-ss/sd-scripts)\n- notebook中部分代码（如下载模块）来自[Linaqruf](https://github.com/Linaqruf/kohya-trainer)\n\n**Attention: It's called kohya-config-webui, but I don't have a license for kohya. It just creates config files for kohya-ss.**\n- 这个插件叫kohya-config-webui，但是我没有kohya的授权，我只是为了说明它的作用是生成一个用于kohya-ss训练的config文件\n\n---\n\n上述两位作者和我目前采取的是Apache-2.0 license\n\n如果你基于此项目进行了修改、引用等用途，请注意原作者的协议。\n\n请在你使用的部分标明代码来源。\n\n# 其他部分展示\n![0S2_@5B6638VJ 4%Y@TQDXK](https://user-images.githubusercontent.com/126865849/232079134-15154ccf-06ac-45a0-984f-244a6e8983f3.png)\n\n![7$K@5833YHY(8T1 `3RE03L](https://user-images.githubusercontent.com/126865849/232079434-d471da6e-9e1d-457b-b635-4c37a838bf15.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwsh032%2Fkohya-config-webui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwsh032%2Fkohya-config-webui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwsh032%2Fkohya-config-webui/lists"}