Skip to content

Instantly share code, notes, and snippets.

View mcmonkey4eva's full-sized avatar
🐒

Alex "mcmonkey" Goodwin mcmonkey4eva

🐒
View GitHub Profile
@mcmonkey4eva
mcmonkey4eva / AntiTree.java
Last active January 3, 2016 07:39
AntiTree, micro-plugin for Bukkit 1.7
package org.dyndns.mcmonkey4eva.antitree;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.plugin.java.JavaPlugin;
@mcmonkey4eva
mcmonkey4eva / Voxalia-Agreement.md
Last active June 29, 2017 07:54
Voxalia Contributor License Agreement
@mcmonkey4eva
mcmonkey4eva / mee6_scrapy.js
Created December 1, 2021 10:01
javascript code to scrape mee6's data for a guild from the leaderboard page
// Toss this into browser console after loading all guild data locally. It's a mess, yaehp.
var out = "";
Array.prototype.forEach.call(document.getElementsByClassName('leaderboardPlayersList')[0].children[0].children, function(elem) {
console.log("try " + elem.textContent);
var userData = elem.children[0].children[0];
var statData = elem.children[0].children[1];
var avatarData = userData.children[1].children[0].src;
var nameData = userData.children[2].textContent.replaceAll('`', '_');
var xpData = statData.children[1].children[1].textContent;
@mcmonkey4eva
mcmonkey4eva / Info.md
Last active January 27, 2023 10:27
Lexica scraper

lexica.art scraper

  • 1: open https://lexica.art/
  • 2: open browser console
  • 3: paste in the JavaScript, hit enter
  • 4: expand the output and copy it to a text file
  • 5: optionally, repeat with multiple sets of pages
  • 6: Save the .cs and .csproj files together in a folder, open the .csproj in Visual Studio
  • 7: Edit the run(... inputs to your file paths
  • 8: Run it
{
"__metadata__": {
"format": "pt"
},
"alphas_cumprod": {
"dtype": "F32",
"shape": [
1000
],
"data_offsets": [
grid:
title: Dynamic Threshold
author: mcmonkey
description: Testing of the Dynamic Thresholding (CFG Scale Fix) extension
format: jpg
params:
dynamicthresholdenable: true
axes:
prompt:
title: prompt
@mcmonkey4eva
mcmonkey4eva / NOTICE.md
Last active June 22, 2023 12:04
TestDiscordAIBot

This is a bare minimum 10-minute slap together. It doesn't work well and I don't intend to maintain it, it's just posted for if you want to look at it or reference it for a slap-together of your own.

I absolutely did not do things properly when making this.

@mcmonkey4eva
mcmonkey4eva / README.md
Last active March 30, 2024 13:43
SDXL 0.9-ish LoRA Training Fit On an RTX 2070

These are the precise settings and commands I used (minus filenames) for my reddit post https://www.reddit.com/r/StableDiffusion/comments/14jck90/finetuning_sdxl_on_an_rtx_2070_consumer_tier_gpu/

I was at the time running this version of Kohya's trainer (now very outdated): https://github.com/kohya-ss/sd-scripts/tree/747af145ed32eb85205dca144a4e49f25032d130

Some edits were made between runs, this is the lastmost settings I had.

This was ran on an RTX 2070 within 8 GiB VRAM, with latest nvidia drivers. The VRAM limit was burnt a bit during the initial VAE processing to build the cache (there have been improvements since such that this should no longer be an issue, with eg the bf16 or fp16 VAE variants, or tiled VAE).

This was ran on Windows, so a bit of VRAM was used by the OS. You'd be safer on Linux.