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 | |
| from loraw.network import LoRAMerger | |
| from stable_audio_tools.models.factory import create_model_from_config | |
| import json | |
| from stable_audio_tools.models.utils import load_ckpt_state_dict | |
| from stable_audio_tools.training.utils import copy_state_dict | |
| # Key prefixes and delimiters | |
| prefixes = { | |
| 'default': 'model/model/', |