diff --git a/README.md b/README.md index 01ac866..6d714d5 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/README_ja.md b/README_ja.md index b538b2f..170ba38 100644 --- a/README_ja.md +++ b/README_ja.md @@ -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 ```