This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class KnyttBinReader | |
{ | |
private $rootDir = ''; | |
private $binSize = 0; | |
private $files = null; | |
//Destructor | |
function __destruct() |