mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
fix path-to-repo-parsing
This commit is contained in:
+3
-2
@@ -1,6 +1,6 @@
|
||||
# Change Log for SD.Next
|
||||
|
||||
## Update for 2024-09-14
|
||||
## Update for 2024-09-15
|
||||
|
||||
- hf force logout/login on token change
|
||||
- flux avoid unet load if unchanged
|
||||
@@ -16,7 +16,8 @@
|
||||
params are set directly on main processing object and can be known or new params
|
||||
example: `steps=10, steps=20; test=unknown`
|
||||
- backend=original is now marked as in maintenance-only mode
|
||||
- minor ui fixes
|
||||
- fix: minor ui optimizations
|
||||
- fix: diffusers local model name parsing
|
||||
|
||||
## Update for 2024-09-13
|
||||
|
||||
|
||||
@@ -1938,8 +1938,9 @@ def remove_token_merging(sd_model):
|
||||
|
||||
|
||||
def path_to_repo(fn: str = ''):
|
||||
repo_id = fn
|
||||
repo_id = repo_id.replace('Diffusers/', '').replace('Diffusers\\', '')
|
||||
repo_id = repo_id.replace('diffusers/', '').replace('diffusers\\', '')
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user