Skip to content

Instantly share code, notes, and snippets.

View linkerlin's full-sized avatar
🎯
Focusing

Halo Master linkerlin

🎯
Focusing
View GitHub Profile
(messageGateway ? SendMessageToClientRequest (
id = id,
phoneNumber = pNumber,
msg = message
)).mapTo[SendMessageToClientResponse] onComplete {
case Success(res) => res match {
case SendMessageToClientResponse(true) =>
currentSender ! SendCustomMessageResponse(true)
case SendMessageToClientResponse(false) =>
currentSender ! SendCustomMessageResponse(false)
@ProGamerGov
ProGamerGov / replace_vae.py
Last active December 26, 2023 07:15
Replace the VAE in a Stable Diffusion model with a new VAE. Tested on v1.4 & v1.5 SD models
# Script by https://github.com/ProGamerGov
import copy
import torch
# Path to model and VAE files that you want to merge
vae_file_path = "vae-ft-mse-840000-ema-pruned.ckpt"
model_file_path = "v1-5-pruned-emaonly.ckpt"
# Name to use for new model file