santa hat
deerdeer nosedeer glow
Sign In

How do I specify another storage device (or place) for models/loras etc...?

I only have so much space for downloading models and other files for image generation. Is it possible to place these large files somewhere else and still use your software without any issues? Thanks.

3 Answers

For LoRA i use sd-webui-additional-networks

after install -> Setting -> Additional Networks -> then add your paths here a sample of mine:

z:\ai\webui\models\lora,d:\lora\anime,d:\lora\nsfw

If you're using Automatic1111, alternate model locations are set with commandline arguments like these (these are my paths, replace them with where you have your models):

--ckpt-dir "C:\stable-diffusion\stable-diffusion-webui\models\Stable-diffusion"

--lora-dir "C:\stable-diffusion\LoRA Training\LoRA Projects\output models"

You add these to the webui-user.bat file that you use to launch the webui, like:

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS= --xformers --ckpt-dir "C:\stable-diffusion\stable-diffusion-webui\models\Stable-diffusion" --lora-dir "C:\stable-diffusion\LoRA Training\LoRA Projects\output models"

call webui.bat

Full commandline argument reference:

https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Command-Line-Arguments-and-Settings

@SysDeep @honk_honk

Thanks for getting back to me, I should have mentioned that I am using Linux and not Windows. My bad I guess.

Your answer