Skip to content

Instantly share code, notes, and snippets.

View jaretburkett's full-sized avatar

Jaret Burkett jaretburkett

View GitHub Profile
@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 / 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 / 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 / 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 / Humans v1 - Token Counts
Created June 27, 2023 02:28
Humans v1 - Token Counts
This file has been truncated, but you can view the full file.
smiling mouth revealing white straight teeth - 24426
anxious expression with biting lower lip - 17012
shallow depth of field - 16806
early childhood age - 14067
social worker - 12566
smiling mouth revealing slightly crooked teeth - 12329
broad grin revealing straight white teeth - 11336
pediatrician - 11212
preschooler age - 10873
@jaretburkett
jaretburkett / moveSchools.js
Created July 28, 2022 21:21
Taper monkey Zillow move schools
// ==UserScript==
// @name Move Schools
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.zillow.com/**
// @icon https://www.google.com/s2/favicons?sz=64&domain=zillow.com
// @grant none
// @require http://code.jquery.com/jquery-3.4.1.min.js
@jaretburkett
jaretburkett / parallelSync.js
Created April 23, 2018 23:23
Parallel synchronous functions with a common resolve in Node.js
function parallelSync(arrOfSyncFunctions){
return new Promise(async resolve =>{
let numToResolve = arrOfSyncFunctions.length;
let numResolved = 0;
// call after each async function resolves
const resolveOne = () =>{
numResolved++;
if(numResolved >= numToResolve){
// all functions have resolved. Resolve finally
resolve();
@jaretburkett
jaretburkett / makeItWeird
Created March 19, 2018 16:44
Deep Dream Zooming Video Bash
#!/bin/bash
DREAMS=5
#use 6 numbers important
ITERATIONS=5
FILE=$1
## Get the file name and path
LOCALPATH="$(dirname "$FILE")"
LOCALPATHSLASH="$LOCALPATH/"
@jaretburkett
jaretburkett / SimpleWebcam.html
Created August 20, 2017 22:46
A simple webcam viewer that can be flipped both vertically and horizontally
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>Simple Webcam Viewer</title>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<style>
* {
box-sizing: border-box;
@jaretburkett
jaretburkett / setupwaveshare.sh
Last active November 1, 2016 18:24
Setup 5" waveshare display script
#!/bin/bash
echo 'max_usb_current=1' >> /boot/config.txt
echo 'hdmi_group=2' >> /boot/config.txt
echo 'hdmi_mode=87' >> /boot/config.txt
echo 'hdmi_cvt=800 480 60 6 0 0 0' >> /boot/config.txt
wget http://www.waveshare.com/w/upload/3/3d/LCD-show-160811.tar.gz
tar xzvf LCD-show-160811.tar.gz
rm LCD-show-160811.tar.gz
cd LCD-show && sudo ./LCD5-show