Skip to content

Instantly share code, notes, and snippets.

View GoombaProgrammer's full-sized avatar

Goomba GoombaProgrammer

View GitHub Profile
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/',
@GoombaProgrammer
GoombaProgrammer / librand.cs
Created August 18, 2024 08:02
c# random number gen
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)
@GoombaProgrammer
GoombaProgrammer / HttpServer.cs
Created June 27, 2023 14:33 — forked from define-private-public/HttpServer.cs
A Simple HTTP server in C#
// 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;