Skip to content

Instantly share code, notes, and snippets.

View wkpark's full-sized avatar

Won-Kyu Park wkpark

View GitHub Profile
@wkpark
wkpark / replace_vae.py
Last active June 22, 2023 16:08 — forked from ProGamerGov/replace_vae.py
Replace the VAE in a Stable Diffusion model with a new VAE. Tested on v1.4 & v1.5 SD models
#
# Script by https://github.com/ProGamerGov
#
# ChangeLog:
# - support safetensors, save float16 if needed, check filename 2023/06/22 by wkpark
#
import os
import sys
import copy
import torch
I am wkpark aka @hackmod known as an open-source developer in South Korea, not a high-school guy known as a scam developer named airking.
https://twitter.com/hackyminer/status/1123647998594961408
(photo) https://twitter.com/hackyminer/status/1085167751444873217
@wkpark
wkpark / saenaru.js
Created April 4, 2013 14:24
자바스크립트 새나루 한글 입력기
/**
* Saenaru Javascript Hangul Input Method by wkpark at gmail.com
* 2013/03/25
* License: GPLv2
*/
var Saenaru = function() {};
Saenaru.prototype = {
_q: [],
@wkpark
wkpark / 3final.js
Created April 4, 2013 14:22
SaenaruJS를 위한 세벌식 최종 자판
(function() {
var keyboard_table_3final = {
name: "3-final",
desc: "세벌식",
type: 3,
table: [
0x11a9, /* exclam: jongseong ssangkiyeok */
0x00b7, /* quotedbl: middle dot */
0x11bd, /* numbersign: jognseong cieuc */
0x11b5, /* dollar: jongseong rieul-phieuph */
/**
* Hanja to hangul converter by wkpark at gmail.com (2013/03/29)
*
* License: APL
*/
/* based on http://jinsuk.pe.kr unicode data (public domain) */
var jinsuk =
"구첨칠마과오은굴둘절살톨이졸글올놀돌졸갈골율혈놀쌀둘올울구굴길길" +
"율유뜰골구설걸제서형천흉류름양용신진대올반유사마흠흘중내승풍원격" +
@wkpark
wkpark / hwr.js
Last active July 24, 2019 06:26
Handwriting canvas
//
// Author: Won-Kyu Park wkpark at gmail.com (2013/02/07)
//
// License: GPL
//
// See also http://www.nogginbox.co.uk/blog/canvas-and-multi-touch
// by Richard Garside - www.nogginbox.co.uk (2010)
//
// ShortStrawJS corner test added (2013/02/20)
// http://www.lab4games.net/zz85/blog/2010/01/21/geeknotes-shortstrawjs-fast-and-simple-corner-detection/
@wkpark
wkpark / ohi.js
Last active September 21, 2023 01:44
Oline Hangul Input method by Ho-Seok Ee
/*
* Author : Ho-Seok Ee <hsee@korea.ac.kr>
* Release: 2006/07/14
* Update : 2011/01/22
Copyright (C) Ho-Seok Ee <hsee@korea.ac.kr>. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of