mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-09 21:04:41 +08:00
Update nodes.py
This commit is contained in:
parent
181f153120
commit
7aa591b3a6
@ -1869,6 +1869,7 @@ class FluxBlockLoraLoader:
|
||||
if lora is None:
|
||||
lora = load_torch_file(lora_path, safe_load=True)
|
||||
# Find the first key that ends with "weight"
|
||||
rank = "unknown"
|
||||
weight_key = next((key for key in lora.keys() if key.endswith('weight')), None)
|
||||
# Print the shape of the value corresponding to the key
|
||||
if weight_key:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user