diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index d579b5f2..3fef713b 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -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', }, ], }, { diff --git a/docs/ja/usage/commandline.md b/docs/ja/usage/commandline.md new file mode 100644 index 00000000..2531d865 --- /dev/null +++ b/docs/ja/usage/commandline.md @@ -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を有効化 | - | \ No newline at end of file