This commit is contained in:
Vladimir Mandic
2024-09-15 12:30:48 -04:00
parent 2d196a16b0
commit 0c221a6b7d
-2
View File
@@ -1939,9 +1939,7 @@ def remove_token_merging(sd_model):
def path_to_repo(fn: str = ''):
print('HERE1', fn)
repo_id = fn.replace('\\', '/').split('/')
repo_id = '/'.join(repo_id[-2:] if len(repo_id) > 1 else repo_id)
repo_id = repo_id.replace('models--', '').replace('--', '/')
print('HERE1', repo_id)
return repo_id