File size: 2,142 Bytes
2be026c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
{
"cells": [
{
"cell_type": "markdown",
"id": "5e35269a-ec20-41a3-93a6-da798c3a8401",
"metadata": {},
"source": [
"# LoRA Train UI: SD-Trainer\n",
"\n",
"LoRA Training UI By [Akegarasu](https://github.com/Akegarasu)\n",
"User Guide:https://github.com/Akegarasu/lora-scripts/blob/main/README.md\n",
"\n",
"LoRA 训练 By [秋葉aaaki@bilibili](https://space.bilibili.com/12566101)\n",
"使用方法:https://www.bilibili.com/read/cv24050162/"
]
},
{
"cell_type": "markdown",
"id": "12c2a3d0-9aec-4680-9b8a-cb02cac48de6",
"metadata": {},
"source": [
"### Run | 运行"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "7ae0678f-69df-4a12-a0bc-1325e52e9122",
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"!export HF_HOME=huggingface && $sys.executable gui.py --host 0.0.0.0"
]
},
{
"cell_type": "markdown",
"id": "99edaa2b-9ba2-4fde-9b2e-af5dc8bf7062",
"metadata": {},
"source": [
"## Update | 更新"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Github"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!git pull && git submodule init && git submodule update"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 国内镜像加速"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!export GIT_CONFIG_GLOBAL=./assets/gitconfig-cn && export GIT_TERMINAL_PROMPT=false && git pull && git submodule init && git submodule update"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.8"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
|