forked from Vetchems/sd-civitai-browser
-
Notifications
You must be signed in to change notification settings - Fork 11
How to set up subfolders for model storage [v1.15.0 and above]
SignalFlagZ edited this page Mar 9, 2024
·
6 revisions
Set the subfolder under the type folder to save the model in Settings. Click here to learn how to set up the type folder.
Subfolders can be set by referring to model information. The model information can be referenced by the key name enclosed in double curly brackets {{KEY_NAME}}
. Folder separator is /
.
key | description |
---|---|
BASEMODELbkCmpt | Base model becomes subfolder name. Spaces are replaced with _ . This key is for backwards compatibility. In case of SD version 1, a subfolder are not created. |
BASEMODEL | Base model becomes subfolder name. Spaces are replaced with _ . |
NSFW | For NSFW models, an nsfw subfolder will be created. Otherwise, subfolders will not be created. |
USERNAME | Creator username becomes subfolder name. Characters that cannot be used in file name are replaced with _ . |
MODELNAME | Model name becomes subfolder name. |
MODELID | Model ID becomes subfolder name. |
VERSIONNAME | Version name becomes subfolder name. |
VERSIONID | Version ID becomes subfolder name. Spaces are replaced with _
|
example | description |
---|---|
{{BASEMODEL}}/.{{NSFW}}/{{MODELNAME}} |
Default for backwards compatibility. like _SDXL_1_0/.nsfw/[MODEL-NAME] or _Pony/[MODEL-NAME] or [MODEL-NAME]
|
{{BASEMODEL}}/{{NSFW}} |
like SDXL_1_0/nsfw or Pony
|
{{BASEMODEL}}/{{NSFW}}/{{USERNAME}} |
like SDXL_1_0/nsfw/[UPLODER-NAME] or SDXL_1_0/[UPLODER-NAME]
|
any/{{BASEMODEL}}/folder |
like any/SDXL_1_0/folder or any/Pony/folder
|
{{USERNAME}}/{{MODELID}}-{{VERSIONID}} |
like [USER-NAME]/[xxxxxx-yyyyyy]
|