File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
invokeai/backend/model_management Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -423,14 +423,15 @@ def get_model(
423423 if submodel_type is not None and hasattr (model_config , submodel_type ):
424424 override_path = getattr (model_config , submodel_type )
425425 if override_path :
426- model_path = override_path
426+ model_path = self . app_config . root_path / override_path
427427 model_type = submodel_type
428428 submodel_type = None
429429 model_class = MODEL_CLASSES [base_model ][model_type ]
430430
431431 # TODO: path
432432 # TODO: is it accurate to use path as id
433433 dst_convert_path = self ._get_model_cache_path (model_path )
434+
434435 model_path = model_class .convert_if_required (
435436 base_model = base_model ,
436437 model_path = str (model_path ), # TODO: refactor str/Path types logic
You can’t perform that action at this time.
0 commit comments