Skip to content

Instantly share code, notes, and snippets.

View jaretburkett's full-sized avatar

Jaret Burkett jaretburkett

View GitHub Profile
@jaretburkett
jaretburkett / person-terms
Created June 27, 2023 02:30
Terms for tagging pictures of humans
aboriginal
above average
abstract composition
abusive
accessories
accountant
acid wash
acne-prone skin
acne scars
@jaretburkett
jaretburkett / interrogate.py
Created July 26, 2023 01:26
Interrogate image folder with blip 2
#!/usr/bin/env python3
"""
Interrogator using BLIP2\n
"""
# set gpu to 1
# set pci bus order
import os
@jaretburkett
jaretburkett / StableDiffusionIdeas.md
Last active October 12, 2023 22:19
Stabile Diffusion Ideas

Stable Diffusion Ideas

  1. Test application for latent inversion.
  2. Apply adain to noise predition to see if it mitigates color learning
@jaretburkett
jaretburkett / diffusers_timestep_test.py
Created November 29, 2023 18:16
diffusers_timestep_test.py
from diffusers import EulerDiscreteScheduler, DDPMScheduler
import torch
name_or_path = "stabilityai/stable-diffusion-xl-base-1.0"
euler = EulerDiscreteScheduler.from_pretrained(
name_or_path, subfolder="scheduler"
)
@jaretburkett
jaretburkett / merge_loras.py
Created October 9, 2024 15:15
Merge loras together that have the same weight naming convention.
import gc
from collections import OrderedDict
# leave in this if for autoformatting purposes
if True:
import torch
from safetensors.torch import load_file, save_file
def flush():
@jaretburkett
jaretburkett / merge_loras.py
Created June 12, 2025 17:13
Merge AI-Toolkit LoRAs
import gc
from collections import OrderedDict
import os
# leave in this if for autoformatting purposes
if True:
import torch
from safetensors.torch import load_file, save_file
@jaretburkett
jaretburkett / stack_loras.py
Created June 12, 2025 17:19
Stack AI-Toolkit LoRAs by rank. Be careful as they get big fast.
import gc
from collections import OrderedDict
import os
# leave in this if for autoformatting purposes
if True:
import torch
from safetensors.torch import load_file, save_file