Skip to content

Instantly share code, notes, and snippets.

@looki
looki / outpainting.py
Created September 13, 2022 02:23
Simple CLI for parlance-zz's outpainting noise generation script
# Code extracted from https://github.com/parlance-zz/g-diffuser-bot/tree/g-diffuser-bot-diffuserslib-beta
#
# `pip install numpy image scikit-image` should cover all dependencies, but they are probably installed if you're using SD.
#
# The GitHub recommends a denoising strength of 0.6 and config scale of 10.
# I've found a bit higher values for the denoising strength to work better, ymmv
import os, sys
from PIL import Image
@looki
looki / kbreader.php
Created January 4, 2018 19:22
Super old Knytt Stories map reader and renderer classes for PHP
<?php
class KnyttBinReader
{
private $rootDir = '';
private $binSize = 0;
private $files = null;
//Destructor
function __destruct()