This file contains 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/', |
This file contains 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
namespace librand | |
{ | |
public class librand | |
{ | |
public static int rand(int min, int max) | |
{ | |
Random r = new Random(); | |
for (int i = min; i < max; i++) | |
{ | |
if (r.Next(0, 2) == 1) |
This file contains 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
// Filename: HttpServer.cs | |
// Author: Benjamin N. Summerton <define-private-public> | |
// License: Unlicense (http://unlicense.org/) | |
using System; | |
using System.IO; | |
using System.Text; | |
using System.Net; | |
using System.Threading.Tasks; |