mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
further refactoring
This commit is contained in:
parent
0fb7328022
commit
24b19166dd
@ -423,7 +423,7 @@ class ModelManager(object):
|
|||||||
return (model_name, base_model, model_type)
|
return (model_name, base_model, model_type)
|
||||||
|
|
||||||
def _get_model_cache_path(self, model_path):
|
def _get_model_cache_path(self, model_path):
|
||||||
return self.resolve_model_path(".cache" + "/" + hashlib.md5(str(model_path).encode()).hexdigest())
|
return self.resolve_model_path(Path(".cache") / hashlib.md5(str(model_path).encode()).hexdigest())
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def initialize_model_config(cls, config_path: Path):
|
def initialize_model_config(cls, config_path: Path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user