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 os | |
import argparse | |
import torch | |
from safetensors.torch import load_file, save_file | |
def convert_lora_sd(diffusers_lora_sd): | |
double_block_patterns = { | |
"attn.to_out.0": "img_attn.proj", | |
"ff.net.0.proj": "img_mlp.0", |
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
{ | |
"last_node_id": 52, | |
"last_link_id": 129, | |
"nodes": [ | |
{ | |
"id": 2, | |
"type": "DualCLIPLoader", | |
"pos": { | |
"0": 20, | |
"1": 210 |
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 torch | |
import safetensors | |
from diffusers.pipelines.stable_diffusion.convert_from_ckpt import download_from_original_stable_diffusion_ckpt | |
ckpt_path = "./realisticVisionV5_1.safetensors" | |
ic_path = "./iclight_sd15_fc.safetensors" | |
dump_path = "./ic-light" |