From f62bbef9f711e7ac3998eff0455d3e98e7fbe398 Mon Sep 17 00:00:00 2001 From: LoganPederson <76628309+LoganPederson@users.noreply.github.com> Date: Tue, 7 Feb 2023 18:19:59 -0600 Subject: [PATCH 1/2] Update 050_INSTALLING_MODELS.md I found I needed to use double backslashes to import a new model, when using single backslash the output would say "e:_ProjectsCodemodelsldmstable-diffusion-model-to-import.ckpt is neither the path to a .ckpt file nor a diffusers repository id. Can't import." This added tip in the documentation will help Windows users overcome this. --- docs/installation/050_INSTALLING_MODELS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/installation/050_INSTALLING_MODELS.md b/docs/installation/050_INSTALLING_MODELS.md index 4c27b342f1..54f21023e8 100644 --- a/docs/installation/050_INSTALLING_MODELS.md +++ b/docs/installation/050_INSTALLING_MODELS.md @@ -167,6 +167,10 @@ the command-line client's `!import_model` command. Once you have typed in `!import_model `, you can drag the model `.ckpt` file onto the command-line to insert the model path. This way, you don't need to type it or copy/paste. + + !!! tip "on Windows, you may need to use double backslash in the filename" + + Example: E:\\_Projects\\Code\\models\\ldm\\stable-diffusion-v1\\new-model-to-add.ckpt 4. Follow the wizard's instructions to complete installation as shown in the example here: From 614220576f1da719166c73a7a594b51112f48e87 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Tue, 7 Feb 2023 23:01:59 -0500 Subject: [PATCH 2/2] add that forward slashes work too --- docs/installation/050_INSTALLING_MODELS.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/installation/050_INSTALLING_MODELS.md b/docs/installation/050_INSTALLING_MODELS.md index 54f21023e8..206262c662 100644 --- a/docs/installation/050_INSTALLING_MODELS.md +++ b/docs/installation/050_INSTALLING_MODELS.md @@ -168,9 +168,10 @@ the command-line client's `!import_model` command. onto the command-line to insert the model path. This way, you don't need to type it or copy/paste. - !!! tip "on Windows, you may need to use double backslash in the filename" + !!! tip "on Windows, you may need to use double backslash in the filename, or alternatively replace backslashes with forward slashes" Example: E:\\_Projects\\Code\\models\\ldm\\stable-diffusion-v1\\new-model-to-add.ckpt + Or alternatively: E:/_Projects/Code/Models/ldm/stable-diffusion-v1/new-model-to-add.ckpt 4. Follow the wizard's instructions to complete installation as shown in the example here: