This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import safetensors.torch | |
| from safetensors import safe_open | |
| from collections import defaultdict | |
| # Input and output file paths | |
| input_path = "non_comfy_fal_format_lora.safetensors" | |
| output_path = "comfy_format_lora.safetensors" | |
| # Read in the weights | |
| tensors = {} |