While trying to merge two lora files, I receive the following error.
PS C:\Users\Username> lora_add D:\test\lora1.safetensors D:\test\lora2.safetensors D:\test\loraMerged.safetensors 0.5 0.5
Lora Add, mode lpl
Traceback (most recent call last):
File "C:\Users\Username\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Username\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\Username\AppData\Local\Programs\Python\Python310\Scripts\lora_add.exe__main__.py", line 7, in
File "C:\Users\Username\AppData\Local\Programs\Python\Python310\lib\site-packages\lora_diffusion\cli_lora_add.py", line 187, in main
fire.Fire(add)
File "C:\Users\Username\AppData\Local\Programs\Python\Python310\lib\site-packages\fire\core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "C:\Users\Username\AppData\Local\Programs\Python\Python310\lib\site-packages\fire\core.py", line 475, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "C:\Users\Username\AppData\Local\Programs\Python\Python310\lib\site-packages\fire\core.py", line 691, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "C:\Users\Username\AppData\Local\Programs\Python\Python310\lib\site-packages\lora_diffusion\cli_lora_add.py", line 86, in add
metadata.update(dict(safeloras_2.metadata()))
TypeError: 'NoneType' object is not iterable
While trying to merge two lora files, I receive the following error.