fix lora model name reference for models in subfolders

pull/33/head
ChunKoo Park 2023-03-03 22:10:19 +09:00
parent b0214118ba
commit dfccab41e0
1 changed files with 2 additions and 0 deletions

View File

@ -641,6 +641,8 @@ class Script(scripts.Script):
if lora_model != 'None':
lora_name = lora_model[:lora_model.rfind('.')]
lora_name = lora_name.replace('\\', '/')
lora_name = lora_name.split('/')[-1]
arr.insert(0, f'<lora:{lora_name}:{lora_multiplier}>')
if ',' in keyword_placement: