mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
remove hardcoded subfolder name from model downloader
This commit is contained in:
parent
a681fa4b03
commit
fe0cf2c160
@ -335,7 +335,7 @@ class ModelInstall(object):
|
||||
# list all the files in the repo
|
||||
files = [x.rfilename for x in hinfo.siblings]
|
||||
if subfolder:
|
||||
files = [x for x in files if x.startswith("v2/")]
|
||||
files = [x for x in files if x.startswith(f"{subfolder}/")]
|
||||
prefix = f"{subfolder}/" if subfolder else ""
|
||||
|
||||
location = None
|
||||
|
Loading…
Reference in New Issue
Block a user