Skip to content

How to set save folders by type [v1.10.0 and above]

SignalFlagZ edited this page Apr 7, 2024 · 2 revisions

Set the storage folder as a key-value pair using a JSON string. Set type to key and path to value.
Paths can be set as relative or absolute paths. Relative paths are expressed with respect to the base path determined for each type.

Base Path

The base path is the path that the relative path is based on. The most basic paths are the SD web UI folder path and models_path in modules.paths. However, there are also special ones such as AestheticGradient.
Empty string "" becomes base path.

Type Base path Description
Checkpoint models_path/StableDiffusion or --ckpt-dir setting
VAE models_path/VAE or --vae-dir setting
TextualInversion embeddings/ or --embeddings-dir setting
LORA models_path/Lora or --lora-dir setting
LoCon models_path/LyCORIS or --lyco_dir,--lyco_dir_backcompat setting
DoRA _DoRA under LORA folder
Hypernetwork models_path/hypernetworks or --hypernetwork_dir setting
AestheticGradient extensions/stable-diffusion-webui-aesthetic-gradients/aesthetic_embeddings
Controlnet models_path
Upscaler models_path
MotionModule models_path
Poses models_path
Wildcards models_path
Workflows models_path
Other models_path

Examples

Default setting example

{
 "Checkpoint": "",
 "VAE": "",
 "TextualInversion": "",
 "LORA": "",
 "LoCon": "",
 "DoRA": "",
 "Hypernetwork": "",
 "AestheticGradient": "",
 "Controlnet": "ControlNet",
 "Upscaler": "OtherModels/Upscaler",
 "MotionModule": "OtherModels/MotionModule",
 "Poses": "OtherModels/Poses",
 "Wildcards": "OtherModels/Wildcards",
 "Workflows": "OtherModels/Workflows",
 "Other": "OtherModels/Other"
}

Save LoCon type models to models/Lora/LyCORIS folder.

{
  "LoCon": "../Lora/LyCORIS"
}