mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
sort lora list alphabetically
This commit is contained in:
@@ -535,7 +535,7 @@ class InvokeAIWebServer:
|
||||
loras = loras + models
|
||||
|
||||
found_loras = []
|
||||
for lora in loras:
|
||||
for lora in sorted(loras):
|
||||
location = str(lora.resolve()).replace("\\", "/")
|
||||
found_loras.append({"name": lora.stem, "location": location})
|
||||
socketio.emit("foundLoras", found_loras)
|
||||
|
||||
603
invokeai/frontend/dist/assets/index-5c01abfb.js
vendored
Normal file
603
invokeai/frontend/dist/assets/index-5c01abfb.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -26,7 +26,7 @@ class LoRALayer:
|
||||
def __init__(self, lora_name: str, name: str, rank=4, alpha=1.0):
|
||||
self.lora_name = lora_name
|
||||
self.name = name
|
||||
self.scale = alpha / rank if alpha else 1.0
|
||||
self.scale = alpha / rank if (alpha and rank) else 1.0
|
||||
|
||||
|
||||
class LoRAModuleWrapper:
|
||||
|
||||
Reference in New Issue
Block a user