Skip to content

Instantly share code, notes, and snippets.

View vluz's full-sized avatar
💖
Python

vluz vluz

💖
Python
View GitHub Profile
@vluz
vluz / sdnano.py
Created July 7, 2023 12:57
SDNano
import torch, time, gc, logging, cv2, os
from os import system, name
from authtoken import auth_token
from termcolor import colored
from torch import autocast
from diffusers.models import AutoencoderKL
from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
def purge():