Skip to content

Instantly share code, notes, and snippets.

@NoCrypt
NoCrypt / fast_ext_load.patch
Created August 19, 2023 11:04
Comfy faster extension load
diff --git a/web/scripts/app.js b/web/scripts/app.js
index 1c95c76..333080f 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -1025,20 +1025,23 @@ export class ComfyApp {
});
}
- /**
- * Loads all extensions from the API into the window
@NoCrypt
NoCrypt / DPMPP_2M_V2.patch
Last active September 14, 2023 03:52
Patches 🩹 git apply --ignore-whitespace <file>
diff --git a/modules/sd_samplers_kdiffusion.py b/modules/sd_samplers_kdiffusion.py
index 5552a8dc..8aa47eb0 100644
--- a/modules/sd_samplers_kdiffusion.py
+++ b/modules/sd_samplers_kdiffusion.py
@@ -19,6 +19,7 @@ samplers_k_diffusion = [
('DPM2 a', 'sample_dpm_2_ancestral', ['k_dpm_2_a'], {'discard_next_to_last_sigma': True, "uses_ensd": True}),
('DPM++ 2S a', 'sample_dpmpp_2s_ancestral', ['k_dpmpp_2s_a'], {"uses_ensd": True, "second_order": True}),
('DPM++ 2M', 'sample_dpmpp_2m', ['k_dpmpp_2m'], {}),
+ ('DPM++ 2M v2', 'sample_dpmpp_2m_v2', ['k_dpmpp_2m'], {}),
('DPM++ SDE', 'sample_dpmpp_sde', ['k_dpmpp_sde'], {"second_order": True, "brownian_noise": True}),
@NoCrypt
NoCrypt / krita-with-colab-update.bat
Created January 15, 2023 05:40
[WINDOWS ONLY] Update your krita sd-webui plugin without moving all files manually
@ECHO off
:: Administrator power is needed for linking files (It's safe and you can see the code urself lol)
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
:: Please change variable below to your krita resource folder (not installation)
:: OR.. leave it as it be if you installed krita on default folder
set YOUR_KRITA_FOLDER=%appdata%\krita\
cd /D %YOUR_KRITA_FOLDER%\pykrita\