Skip to content

Instantly share code, notes, and snippets.

param(
[Parameter(HelpMessage = "사용할 디렉토리 경로")]
[string] $HomeDir = (Get-Location).Path,
[Parameter(HelpMessage = "사용할 레포지토리 디렉터리 경로")]
[string] $RepoDir = "${HomeDir}\repo",
[Parameter(HelpMessage = "사용할 캐시 디렉터리 경로")]
[string] $CacheDir = "${HomeDir}\cache",
#!/bin/bash
# yo whatsup yalls, call me meow theif ;))) also checkout my colab notebook
shopt -s globstar
shopt -s nullglob
git clone --depth=1 https://github.com/toriato/easy-stable-diffusion
cd easy-stable-diffusion
mkdir -p SD/models/Stable-diffusion
# cuda_version=$(python -c 'import torch; print(torch.version.cuda)')
@toriato
toriato / yes.md
Created December 25, 2022 12:45
remove background snows and party hats from 4chan with uBlock filters

Disable snowy background

||s.4cdn.org/js/snow.js
4chan.org,4channel.org###js-snowfield
4chan.org,4channel.org##.catalog-thread::after:style(background-image: initial !important)
import re
from typing import Callable
from modules.processing import StableDiffusionProcessing
# 프롬프트에 사용할 수 있는 글자
PROMPT_VALID_CHARACTERS = re.compile(r'^(|[a-zA-Z\s\d()\[\]_,:]+)$')
FILTERS = {
# 프롬프트
diff --git a/modules/sd_hijack.py b/modules/sd_hijack.py
index eaedac1..67eac6c 100644
--- a/modules/sd_hijack.py
+++ b/modules/sd_hijack.py
@@ -4,6 +4,7 @@ import sys
import traceback
import torch
import numpy as np
+import open_clip
from torch import einsum
@toriato
toriato / 00-huggingface-shell-scripts.md
Last active November 18, 2022 14:37
shell scripts related with huggingface

shell scripts related with huggingface

CRC-32: 4d3df313
MD5: 5621227306c7a0084c93b32b3e6d1efb
SHA-1: 42190820033b9aa7cfd4a27367e079e3d43a55f0
SHA-256: 8712e20a5d65b6acaa743e8a74961eadfdf846a2c9a32160d80a80cba13ad475
SHA3-256: 5d96038123b427a11a6cb2afce7dd55de1514b1c4748c8c599e162082f2187fc

classes

launch multiple auto's webui instances