mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Use global_cache_dir calls properly
This commit is contained in:
parent
aa4e8d8cf3
commit
f3e952ecf0
@ -759,7 +759,7 @@ class ModelManager(object):
|
||||
|
||||
# transformer files get moved into the hub directory
|
||||
if cls._is_huggingface_hub_directory_present():
|
||||
hub = global_cache_dir() / 'hub'
|
||||
hub = global_cache_dir('hub')
|
||||
else:
|
||||
hub = models_dir / 'hub'
|
||||
|
||||
@ -776,7 +776,7 @@ class ModelManager(object):
|
||||
|
||||
# anything else gets moved into the diffusers directory
|
||||
if cls._is_huggingface_hub_directory_present():
|
||||
diffusers = global_cache_dir() / 'diffusers'
|
||||
diffusers = global_cache_dir('diffusers')
|
||||
else:
|
||||
diffusers = models_dir / 'diffusers'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user