Skip to content

Commit

Permalink
add docs for commandline args and env values
Browse files Browse the repository at this point in the history
  • Loading branch information
fkunn1326 committed May 7, 2023
1 parent 4dd03b5 commit 0488bf8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export default defineConfig({
{ text: 'Model', link: '/ja/usage/model' },
{ text: 'TensorRT', link: '/ja/usage/tensorrt' },
{ text: 'Deepfloyd IF', link: '/ja/usage/deepfloyd_if' },
{ text: 'Commandline Args', link: '/ja/usage/commandline', },
],
},
{
Expand Down
32 changes: 32 additions & 0 deletions docs/ja/usage/commandline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 環境変数とコマンドライン引数

## 環境変数

| 名前 | 説明 |
| ---------------------- | ------------------------------------------------------------------- |
| PYTHON | python.exeへのパス |
| VENV_DIR | venvのパス |
| GIT | gitへのパス |
| INDEX_URL | pipの--index_url |
| COMMANDLINE_ARGS | radiata本体へのコマンドライン引数 |
| TENSORRT_LINUX_COMMAND | linuxでのtensorrtのインストールコマンド `e.g. pip install tensorrt` |
| TORCH_COMMAND | pytorchのインストールコマンド `e.g. pip install torch` |
| XFORMERS_COMMAND | xformersのインストールコマンド `e.g. pip install xformers` |


## コマンドライン引数

| 名前 | 説明 | 規定値 |
| -------------------- | ---------------------------------- | ----------- |
| --config-file | config.tomlへのパス | config.toml |
| --host | webuiが起動するIP | - |
| --port | webuiが起動するポート | 7860 |
| --share | webuiの共有 | - |
| --model-dir | モデルのディレクトリ | - |
| --hf-token | Hugging Faceのトークン | - |
| --skip-install | パッケージのインストールをスキップ | - |
| --reinstall-torch | pytorchを再インストール | - |
| --reinstall-xformers | xformersを再インストール | - |
| --xformers | xformersを有効化 | - |
| --tensorrt | tensorrtを有効化 | - |
| --deepfloyd_if | deepfloydを有効化 | - |

0 comments on commit 0488bf8

Please sign in to comment.