Skip to content

Instantly share code, notes, and snippets.

View jags111's full-sized avatar

VALADI K JAGANATHAN jags111

View GitHub Profile
@jags111
jags111 / tezos validator
Last active September 17, 2022 16:19
tezos profile
I am attesting that this GitHub handle https://www.github.com/jags111 is linked to the Tezos account tz1WLxr9rca5DkvbKfi7A5L1m7kxcwqKw9RR for tzprofiles
sig:edsigtsESkLjEJ4Tvfut5dWauu5EzsbEELxRRzy3Mk9s5DUThU5bppZEanXN5oSx2xrzYV1Xt4awNqbDEdtBaWwjf4kGj1kX7pd
@jags111
jags111 / grease_pencil_init.py
Created May 5, 2022 11:03 — forked from 5agado/grease_pencil_init.py
Init method for Blender 2.8 Grease Pencil
import bpy
def get_grease_pencil(gpencil_obj_name='GPencil') -> bpy.types.GreasePencil:
"""
Return the grease-pencil object with the given name. Initialize one if not already present.
:param gpencil_obj_name: name/key of the grease pencil object in the scene
"""
# If not present already, create grease pencil object
if gpencil_obj_name not in bpy.context.scene.objects:
'''
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):
'''
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
'''