Skip to content

Instantly share code, notes, and snippets.

View Piscabo's full-sized avatar

Piscabo Piscabo

View GitHub Profile
@blepping
blepping / similarityclamp_euler_sampler.py
Last active July 8, 2025 02:57
Experimental similarity clamping sampler node for ComfyUI
# By https://github.com/blepping
# LICENSE: Apache2
# Usage: Place this file in the custom_nodes directory and restart ComfyUI+refresh browser.
# It will add a SimilarityClampEulerSampler node that can be used with SamplerCustom, etc.
import sys
from typing import NamedTuple
import nodes
import torch
'''
https://arxiv.org/abs/2312.00858
1. put this file in ComfyUI/custom_nodes
2. load node from <loaders>
start_step, end_step: apply this method when the timestep is between start_step and end_step
cache_interval: interval of caching (1 means no caching)
cache_depth: depth of caching
'''
'''
https://gist.github.com/kohya-ss/3f774da220df102548093a7abc8538ed
1. put this file in ComfyUI/custom_nodes
2. load node from <loaders>
'''
import torch
from comfy.ldm.modules.diffusionmodules.openaimodel import forward_timestep_embed, timestep_embedding, th
def apply_control(h, control, name):
@pixelass
pixelass / linksRenderMode.js
Last active January 4, 2025 02:59
ComfyUI setting for link render mode
import { app } from "../scripts/app.js";
const name = "Pixelass.Settings.LinkRenderMode";
class Store {
links_render_mode = 0;
key = `Comfy.extension`;
defaultState = {};
constructor(key, defaultState) {
this.key = `Comfy.${key}`;