Skip to content

Instantly share code, notes, and snippets.

@Geeknasty
Geeknasty / Convert_LoRA_Fal2Comfy-v1.py
Created June 28, 2025 01:23
Some useful scripts for converting and inspecting safetensors.
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 = {}