Skip to content

Instantly share code, notes, and snippets.

View Piscabo's full-sized avatar

Piscabo Piscabo

View GitHub Profile
'''
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 August 1, 2023 10:36
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}`;