Update README.

This commit is contained in:
hodanov 2024-11-02 17:37:20 +09:00
parent b9b8f20736
commit c8574a562d
2 changed files with 28 additions and 0 deletions

View File

@ -97,6 +97,7 @@ Add the model used for inference. Use the Safetensors file as is. VAE, LoRA, and
```yml
# ex)
version: "sd15" # Specify 'sd15' or 'sdxl'.
model:
name: stable-diffusion-1-5
url: https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/v1-5-pruned.safetensors # Specify URL for the safetensor file.
@ -117,6 +118,15 @@ loras:
url: download_link_here # Specify the download link for the safetensor file.
```
If you want to use SDXL:
```yml
version: "sdxl"
model:
name: stable-diffusion-xl
url: https://huggingface.co/xxxx/xxxx
```
### 4. Setting prompts
Set the prompt to Makefile.
@ -151,6 +161,10 @@ The txt2img inference is executed with the following command.
```bash
make img_by_sd15_txt2img
or
make img_by_sdxl_txt2img
```
Thank you.

View File

@ -99,6 +99,7 @@ HUGGING_FACE_TOKEN="ここにHuggingFaceのトークンを記載する"
```yml
# 設定例
version: "sd15" # Specify 'sd15' or 'sdxl'.
model:
name: stable-diffusion-1-5
url: https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/v1-5-pruned.safetensors # Specify URL for the safetensor file.
@ -119,6 +120,15 @@ loras:
url: https://civitai.com/api/download/models/150907?type=Model&format=SafeTensor # ダウンロードリンクを指定
```
SDXLを使いたい場合は`version``sdxl`を指定し、urlに使いたいsdxlのモデルを指定します。
```yml
version: "sdxl"
model:
name: stable-diffusion-xl
url: https://huggingface.co/xxxx/xxxx
```
### 4. Makefileの設定プロンプトの設定
プロンプトをMakefileに設定します。
@ -164,4 +174,8 @@ make app
```bash
make img_by_sd15_txt2img
or
make img_by_sdxl_txt2img
```