raw.mp4
- Your input videoout.mp4
- Your output video-r 30
- The framerate of your videos.%04d
- The format of your image sequence.images
- The folder with your image sequence
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Attempt to recreate tngtech/DeepSeek-R1T-Chimera from quantized files | |
# based on https://huggingface.co/tngtech/DeepSeek-R1T-Chimera/discussions/1 | |
# using: | |
# - https://huggingface.co/unsloth/DeepSeek-R1-GGUF | |
# - https://huggingface.co/unsloth/DeepSeek-V3-0324-GGUF | |
# NOTE: The key mapping might not be 100% correct, feel free to experiment | |
import gguf | |
from tqdm import tqdm | |
# I merged the split files using `llama-gguf-split --merge` first |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Force model to always use specified device | |
# Place in `ComfyUI\custom_nodes` to use | |
# City96 [Apache2] | |
# | |
import types | |
import torch | |
import comfy.model_management | |
class OverrideDevice: | |
@classmethod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Simple custom node to segment anime images using https://github.com/SkyTNT/anime-segmentation | |
# To install the custom node, copy this file to your `ComfyUI/custom_nodes` folder | |
# To install the requirements, run `pip install onnxruntime huggingface-hub` inside your VENV | |
# If using the standalone, navigate to the folder where your .bat file is and run this command: | |
# .\python_embeded\python.exe -m pip install onnxruntime huggingface-hub | |
# | |
import torch | |
import numpy as np |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Deflicker videos by only grabbing the interpolated frames. | |
# Helps to smoothe over AI animations, at least somewhat. | |
# Edit the cmd on line 40 to change the model from whatever the default is. | |
# | |
# You'll need this in the same folder https://github.com/nihui/rife-ncnn-vulkan + ffmpeg in path | |
# | |
import os | |
from shutil import copyfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Sort stable diffusion images by the UI they were generated in. | |
# | |
import os | |
import json | |
import argparse | |
from PIL import Image | |
from tqdm import tqdm | |
from shutil import copyfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GIMP Python-Fu script to create (rough) masks from OpenPose images. | |
# Not recommended for singe images, mainly useful for animations/batches. | |
# Requires a uniform black background to work. | |
# Edit input/output folders, then paste into Filters->Python-Fu->Console. | |
import gimpcolor | |
import os | |
in_dir = r"O:\example\raw" # Input folder | |
out_dir = r"O:\example\out" # Output folder | |
grow_size = 48 # Main mask size |