mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-19 09:54:24 -05:00
fix prompt
This commit is contained in:
@@ -513,6 +513,10 @@ class Generate:
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
# lora MUST process prompt before conditioning
|
||||
if self.model.lora_manager:
|
||||
self.model.lora_manager.load_lora()
|
||||
|
||||
try:
|
||||
uc, c, extra_conditioning_info = get_uc_and_c_and_ec(
|
||||
prompt,
|
||||
@@ -549,9 +553,6 @@ class Generate:
|
||||
else None
|
||||
)
|
||||
|
||||
if self.model.lora_manager:
|
||||
self.model.lora_manager.load_lora()
|
||||
|
||||
results = generator.generate(
|
||||
prompt,
|
||||
iterations=iterations,
|
||||
|
||||
Reference in New Issue
Block a user