use config to set cache dir for safety checker

This commit is contained in:
Manuel Schmid
2023-12-16 19:25:02 +01:00
committed by Manuel Schmid
parent ea764855f8
commit cdaaec3e71
4 changed files with 5 additions and 2 deletions
+1
View File
@@ -126,6 +126,7 @@ path_controlnet = get_dir_or_set_default('path_controlnet', '../models/controlne
path_clip_vision = get_dir_or_set_default('path_clip_vision', '../models/clip_vision/')
path_fooocus_expansion = get_dir_or_set_default('path_fooocus_expansion', '../models/prompt_expansion/fooocus_expansion')
path_outputs = get_dir_or_set_default('path_outputs', '../outputs/')
path_safety_checker_models = get_dir_or_set_default('path_safety_checker_models', '../models/safety_checker_models/')
def get_config_item_or_set_default(key, default_value, validator, disable_empty_as_none=False):