Extensions/ComfyUI-FunPack
ComfyUI Extension

ComfyUI-FunPack

A set of custom nodes designed for experiments with video diffusion models.

By digital-garbage·Created about a year ago·Updated about 8 hours ago· 24
olivv-cs/ComfyUI-FunPack
Nodes25
On cloudLocal install
CategoryFunUI/Conditioning, FunUI/Latent
Stars24
Updatedabout 8 hours ago

Nodes (25)

FunUI Apply Prompt Markup

Making (word:1.5) mean something on an LLM encoder

FunUI/Conditioning
FunUI Aspect Size

A 12-megapixel phone photo shouldn't decide your resolution

FunUI/Latent
FunUI Checkpoint Loader

The FunUI Checkpoint Loader, Read Honestly

FunUI/Loaders
FunUI CLIP Loader

Four encoder slots and a family dropdown core won't give you

FunUI/Loaders
FunUI Cut Opening

Trim the head off a clip without desyncing the sound

FunUI/Output
FunUI Decode

The VAE decode that knows some latents have two parts

FunUI/Output
FunUI Diffusion Model Loader

The precision knobs, the int8 trick, and the sparse-attention switch that actually earns its keep

FunUI/Loaders
FunUI Empty Latent

How FunUI Empty Latent Gets Its Shape

FunUI/Latent
FunUI Enhance Prompt

An Enhancer That Hands Your Prompt Back Unchanged When It Fails

FunUI/Conditioning
FunUI Guide Frames

Slipping stills into the middle of an LTX shot

FunUI/Conditioning
FunUI Identity Transfer

Carrying a Face Into an LTX Clip Without Training a LoRA

FunUI/Conditioning
FunUI Latent Resample

Sharpen or Upscale Between Passes Without Breaking Your Conditioning

FunUI/Latent
FunUI Load Latent Upscaler

The Latent Upscaler Loader for Files ComfyUI's Own Node Won't Touch

FunUI/Latent
FunUI Load Media

An ID, Not a Filename

FunUI/Media
FunUI Load Modifiers

Turning On FunUI's Sampler Tricks Without Changing Your Sampler

FunUI/Sampling
FunUI LoRA Loader

One LoRA Per Node, and It Tells You When One Did Nothing

FunUI/Loaders
FunUI Modifier Settings

One JSON box that stands in for forty widgets

FunUI/Sampling
FunUI Negative Erase

Giving the negative prompt a job at CFG 1

FunUI/Conditioning
FunUI Prompt Markup

Attention Weights That Actually Work on an LLM Encoder

FunUI/Conditioning
FunUI Sampler

The Sampler With One Dial That Actually Matters

FunUI/Sampling
FunUI Save Video

MP4 Out, on the GPU Encoder, Without the Last Minute of Nothing

FunUI/Output
FunUI Shot Camera

Shot Grammar for H3 Prompts, Written by Rules Instead of a Model

FunUI/Conditioning
FunUI Train LoRA

Train on the clips you rated, not a folder you assembled

FunUI/Training
FunUI Upscale Video

Upscale the Finished MP4 and Keep the Sound, No Graph Rebuild

FunUI/Output
FunUI VAE Loader

Stop Letting ComfyUI Guess Your VAE's Precision

FunUI/Loaders
Readme

FunUI (formerly FunPack)

<p align="center"><img src="docs/images/studio.jpg" alt="FunUI studio: preview, scene settings and a six-clip timeline" width="900"></p>

Welcome to FunUI repository - an open-source video generation and editing studio.

<p align="left"> <a href="https://ko-fi.com/M4M61MBGIT"><img src="https://img.shields.io/badge/Support%20me%20on%20Ko--fi-FF5E5B?style=for-the-badge&amp;logo=kofi&amp;logoColor=white" alt="Ko-fi" height="36"></a>&nbsp; <a href="https://patreon.com/digitalgarbage?utm_medium=unknown&amp;utm_source=join_link&amp;utm_campaign=creatorshare_creator&amp;utm_content=copyLink"><img src="https://img.shields.io/badge/Become%20a%20Patron-FF424D?style=for-the-badge&amp;logo=patreon&amp;logoColor=white" alt="Patreon" height="36"></a>&nbsp; <a href="https://cloud.vast.ai/?ref_id=308176"><img src="https://img.shields.io/badge/Run%20on-Vast.ai-BCFF41?style=for-the-badge&amp;logoColor=000000" alt="Vast.ai" height="36"></a> </p>

[!IMPORTANT] Despite extensive multi-round testing and reviewing the code with AI agents and personally, some issues and/or undiscovered bugs still may remain in stable releases. If you discover a bug or wish to suggest a new feature, please open a new issue in this repo's Issues.

[!WARNING] Helper (LLM-based project control) is still a work in progress. Result is not guaranteed. Model can loop, misunderstand the intent or misuse a tool - by enabling Helper, you acknowledge all risks of LLM having control over your project files. Please review each change before accepting it.

Installation

Quickly install FunUI based on your desired workflow:

Full bundle (UI+backend), both run on the same machine:

curl -fsSL https://raw.githubusercontent.com/digital-garbage/FunUI/stable/install.sh | bash -s -- bundle

UI only (e.g. for thin clients) - access the backend via SSH:

curl -fsSL https://raw.githubusercontent.com/digital-garbage/FunUI/stable/install.sh | bash -s -- ui

Backend only (e.g. for rental instances/remote machines) - accessed via SSH:

curl -fsSL https://raw.githubusercontent.com/digital-garbage/FunUI/stable/install.sh | bash -s -- backend

Paste the line into a terminal (Terminal on macOS, any terminal on Linux) and press Enter. When it finishes:

  • Full bundle or UI only: open a new terminal, type funui and press Enter. FunUI opens in your browser. (~/FunUI/funui.sh does the same.)
  • Backend only: it is already running when the installer ends. After a reboot, type funui-backend in a terminal. Then, on your own computer, open FunUI and connect in Settings > Backend with that machine's ssh address.

Running the same install line again updates FunUI. It works on Linux and macOS. If git, Python 3.10+, ffmpeg or ssh is missing, the installer offers to install it with the system's package manager (on macOS, with Homebrew). Models go in ~/FunUI/models; models already in a ComfyUI install are found and used where they are.

Check Settings > About FunUI after installing to see which version you have.

What's FunUI?

The main idea behind FunUI is gathering as many useful features as possible inside one app, while offering a thought-out interface designed for maximum speed of daily operation. Since version v6, FunUI swapped the ComfyUI backend for its own backend to achieve certain degree of freedom and feature-independence, while able to compete in terms of speed and precision directly and performing as good as ComfyUI does.

How does it do it?

  • Own backend: no complicated node graphs and connections, multiple built-in optimizations and a structure that remains simple while being advanced.
  • Timeline: add videos, audio, pictures, effects and text. Crop, split, move and render.
  • Media bin: upload media, select and clear aspect ratio sources and references/starting images in one click.
  • Prompt management: build your shortcuts (keywords that expand into full sentences and act like wildcards), use variables (type $variable_name in the prompt and it's replaced with its value), prepend and append text to each scene's prompt with Prefix and Postfix, and split scenes on timeline automatically with Cut words in your prompt.
  • Advanced prompt enhancement: a language model rewrites each prompt, can look at the scene's picture or the last frame of the previous scene, and keeps one running conversation across your scenes, with long ones summarised automatically. Chat with it, leave comments on its rewrites, pass it your ratings, and keep Notes it can edit itself. Every instruction it is given is editable, with macros such as [[PREVIOUS_MODEL_OUTPUT]] and [[LAST_USER_COMMENT]] that fill in from your conversation. For the Enhancer and the Helper, the recommended models are Ternary-Bonsai (currently by far the best for both) and Gemma 4.
  • Projects: switch between different pipelines in one click.
  • Presets: built-in starting points save you time on generic tasks.
  • Controls: fast access to sampler settings, project settings and customizable picker wheel - what's most used is most accessible.
  • Features: lots of operations such as upscaling, interpolation, inference speedup techniques, mixed precision - already built-in or can be activated and installed within 3 clicks.
  • Designed to tend to your taste: rate resulting videos and compatible features will react according to your ratings, gradually changing outputs according to your preferences.

FunUI opens in your browser at 127.0.0.1:8189/fun/. It finds its backend on its own: on the same machine, or on another one over SSH.

A look around

Every picture below is the real app, shown with an abstract demo project (clips made with ffmpeg, no model output).

Write the story once

Composer holds the whole story in one box. A cut word splits it into scenes, $variables fill in what repeats, and templates and shortcuts keep your own wording close. The optional Enhance tab has a language model polish each prompt.

<p align="center"><img src="docs/images/composer-story.jpg" alt="Composer, Story tab" width="900"></p> <p align="center"><img src="docs/images/composer-enhance.jpg" alt="Composer, Enhance tab" width="900"></p>

Start a project in three steps

The Project Setup Wizard picks your look, names the project and loads the pipeline of the model you will use. No tabs, one step at a time.

<p align="center"><img src="docs/images/wizard.jpg" alt="Project Setup Wizard" width="900"></p>

Pipeline as cards, not a graph

Each model comes as a few fixed stations: model, prompt, size, sampling. Pick a file in each card and add features on top. FunUI says when everything is filled and names the first thing missing when it is not.

<p align="center"><img src="docs/images/pipeline.jpg" alt="Models and Pipeline" width="900"></p>

Every module, one place

Modules announce their own settings, so Engine settings is always complete. Turn any module on or off in Settings > Modules.

<p align="center"><img src="docs/images/engine.jpg" alt="Engine settings" width="900"></p> <p align="center"><img src="docs/images/modules.jpg" alt="Modules" width="900"></p>

Quick sampler settings

Steps, sampler, scheduler, seed and the common switches are one click away from the timeline, without leaving the clip you are working on.

<p align="center"><img src="docs/images/sampler.jpg" alt="Quick sampler settings" width="900"></p>

Picker wheel

Press the middle mouse button anywhere and your most used actions fan out under the pointer. Release on one to run it. Which actions appear is up to you.

<p align="center"><img src="docs/images/wheel.jpg" alt="Picker wheel" width="900"></p>

Train your own LoRA (add-on)

Teach the model your style from your own media and results you rated. Pick the data, describe each item, press Start. It is an add-on you switch on in Settings > Modules, and it has been run on MiniMax H3 only.

<p align="center"><img src="docs/images/training-data.jpg" alt="LoRA training, data step" width="900"></p> <p align="center"><img src="docs/images/training-tags.jpg" alt="LoRA training, tags step" width="900"></p> <p align="center"><img src="docs/images/training-train.jpg" alt="LoRA training, train step" width="900"></p>

Dark or light

<p align="center"><img src="docs/images/studio-light.jpg" alt="Light theme" width="900"></p>

Models

FunUI's own backend runs Hailuo MiniMax-H3 and Stable Diffusion 1.5, with the same results and speed as ComfyUI. Hailuo MiniMax-H3 Image and Lightricks LTX 2.3 and 2.5 come back as they are ported.

Documentation

Start with How to start generating with FunUI. The app also has a guided tour: Help -> Start tour.

Writing a module or a UI feature? Start with Developing FunUI.

Version history is available in CHANGELOG.md.

Feedback

If you have suggestions, questions, or ideas for new features, feel free to open an issue or submit a pull request.

Intent

FunUI is provided under GNU General Public License V3, which gives you broad rights to use, modify and distribute the original/modified version of it as long as the original license text is included. FunUI places no limitations on types of content you can generate by using it, meaning both SFW and NSFW content are fine as long as you don't violate your local laws. GPLv3 does not grant you rights for such violations.

However, I do not endorse using FunUI and/or demonstrating it alongside morally and legally questionable/prohibited content, including:

  • Non-consensual explicit depiction of a real person;
  • Explicit depiction of minors;
  • Depiction of violence and gore targeted at a real person.

I do not provide support to users who use FunUI in such cases, and in case I detect it, any support will be immediately ceased.

Thanks for understanding.

Thank you

I express my deepest gratitude to everyone who inspired FunUI, helped with its development at any stage, and whose ideas and researches have been ported into it:

  • ComfyUI (GPL-3.0) by comfyanonymous and contributors, and its whole community - FunUI's MiniMax H3 denoiser, video and audio autoencoders, Qwen3-VL text encoder and sampling math are ported from ComfyUI's code and checked against it;
  • Anthropic and Claude Code;
  • OpenAI and ChatGPT Codex;
  • xAI and Grok Build;
  • Team Cursor and Composer model;
  • DeepSeek team and model;
  • Google and Gemini model; Google's Gemma 4 prompt-format documentation shaped how the Helper talks to its model;
  • The Cline project: its openly published agent prompt (Apache-2.0) inspired the Helper's tool-use rules; no text was copied;
  • Alisson Anjos — the "Plato's Key" text encoder adapters for MiniMax-H3 (TE-PK-Minimax-H3, ComfyUI-H3-Text-Encoders); FunUI's CLIP Loader adapter is a native port of the transform;
  • PrismML's llama.cpp fork (PrismML) — runs the ternary GGUF files (Ternary Bonsai and the like) for the prompt enhancer; FunUI builds and starts its server itself;
  • RFC 8439 (ChaCha20 and Poly1305, by Y. Nir and A. Langley) — the scrambling used for FunUI's light privacy between the page and the backend, written out natively;
  • Lightricks and the LTX-Video model; FunUI's identity-transfer phase tag is a port of ltx_core (Apache-2.0);
  • ComfyUI-LTXVideo — the LTX support FunUI's LTX pipeline is based on;
  • ComfyUI-KJNodes — utilities FunUI's H3 pipeline is based on;
  • ComfyUI-GGUF — reading quantized .gguf encoders;
  • ComfyUI-H3-SLA-Attention (MIT) — the SLA block-sparse attention for MiniMax H3 is ported from it, and its kernel and block map come from LightX2V (Apache-2.0);
  • Veda by veda-sparse (MIT; paper "Veda: Scalable Video Diffusion via Distilled Sparse Attention", Han, Yang, Hu, Mei, Jiang and Qi, ICML 2026, arXiv 2605.30325) and its training code Miowtion (MIT) — the "veda" method of the loader's sparse attention (tiling, tile plans, predictor scoring and tile selection) is rewritten from their code; its INT8 kernel derives from SageAttention 1.0.6 by Jintao Zhang and Haofeng Huang (BSD-3-Clause). Licence notices in modules/loaders/VEDA-NOTICE.txt. The Veda predictor files are not part of FunUI: they stay under the MiniMax H3 Community License and are downloaded by you, on your click, from their official Hugging Face repositories;
  • CosPert (arXiv 2611.22318) — the idea of a small structured push on the attention input at the first step, which decides the layout, behind the Attention explorer's layout modes; here the push is a fixed set of modes that your ratings choose from;
  • ComfyUI-MiniMaxH3_LatentUpscaler by Tr1dae — the tiled H3 decode and the X2 Detail VAE output handling are ported from its "VAE Decode (fast)";
  • JoyAI-Echo by jd-opensource — the cross-shot memory idea behind the Guide frames "Memory" mode;
  • the authors of the papers behind the sampling modules: ALG (arXiv 2506.08456), FreeSliders (2511.00103), Decisiveness (2510.01184), BachVid (2510.21696) and KV-Lock "When to Lock Attention" (2603.09657) for the Identity bank, momentum (2602.20360), "Pulling The REINS" (2606.17257) STAS (2603.17825) and GSRS (2610.21129, Dai, Chen, Wen, Zhuang, Chen, Zeng: the rising sparsity schedule in SLA);
  • OpenCut — the in-browser non-linear video editor whose UI and interaction patterns inspired FunUI's timeline studio;
  • Inter and IBM Plex Mono — the fonts of the app (SIL Open Font License; copies in app/assets/fonts);
  • musubi-tuner by kohya-ss (Apache-2.0) — the LoRA training add-on's loop (which layers get a LoRA, per-block checkpointing, noise sampling and loss weighting, optimizer and learning rate) and its block swap (a number of transformer blocks kept in system memory) follow its MiniMax H3 training recipe;
  • pi-H3 few-step support (2 and 4 steps) is ported from pi-H3 and ComfyUI-piFlow by Hansheng Chen (Lakonik) (Apache-2.0; paper arXiv 2611.22287); licence notice in modules/sampling/pi_h3;
  • PTD few-step support for MiniMax H3 is ported from ComfyUI-PTD-Compact by Nynxz (Apache-2.0), which builds on ComfyUI-PTD by EPFL VITA Lab (Apache-2.0; paper "Parametric Trajectory Distillation for Few-Step Video Generation", arXiv 2610.11498) and on ComfyUI-MiniMaxH3-PTD by taobao-content-ai (Apache-2.0); licence notice in modules/sampling/ptd;
  • NVIDIA and the NVIDIA Video Effects SDK (nvidia-vfx, NVIDIA's own licence) — RTX Super Resolution in Upscale and RTX Frame Generation in Interpolate run on it; FunUI installs it only when you switch the add-on on;
  • NVIDIA and the authors of Sol-H3 (arXiv 2609.35110, NVlabs/Sana, Apache-2.0) — the MXFP8 loader option (which blocks stay in bf16) and the Two stages setting (the cross-resolution schedule) follow its recipe;
  • Tero Karras, Miika Aittala, Timo Aila and Samuli Laine (Elucidating the Design Space of Diffusion-Based Generative Models, arXiv 2206.00364) — the churn idea (fresh noise added during sampling) behind the Turbo sampler's fresh-noise step;
  • Don Mitchell and Arun Netravali (the cubic filter family, SIGGRAPH 1988), Edwin Catmull and Raphael Rom (the Catmull-Rom spline, 1974) and Claude Duchon (the Lanczos window, 1979) — the Mitchell, Catmull-Rom and Lanczos choices when Two stages resizes the latent;
  • NVIDIA and the authors of Open-H3-Regenerate-2K (NVlabs/Sana) — the refiner LoRA's published layout, sampling recipe (a second stage at the full size) and strength convention that the LoRA Loader's Diffusers-layout reading and its "Apply to stage" option are built for; and Kijai, whose published conversion notes (fused attention, order of the gated MLP halves) were used to check our translation;
  • Katherine Crowson and k-diffusion (MIT), and Cheng Lu et al. (DPM-Solver++, arXiv 2211.01095) - the Euler and DPM++ 2M step loops and the Karras schedule of the native sampler; ComfyUI's arithmetic for the SD 1.5 noise levels and normal schedule was followed so results match it;
  • OpenAI CLIP (MIT) - the text tokenizer's vocabulary and merge files and its byte-pair method; Robin Rombach, Andreas Blattmann and the CompVis team (Latent Diffusion, arXiv 2112.10752, MIT) - the SD 1.5 denoiser and image autoencoder layout, written fresh for the native backend;
  • Timothy Lottes (NVIDIA, FXAA) - the idea behind the Post setting "Smooth jagged edges": soften only the pixels on a contrasty edge (written fresh, not copied);
  • LBH-123-AI (Comfyui_Minimax_h3_latent_Upscaler) and TripleHeadedMonkey (ComfyUI-MiniMaxH3_LatentUpscaler) — the H3 latent upscaler network (rebuilt from the published weights, not copied) and its use in Second pass and as the Two stages enlarge option;
  • MiniMax and the MiniMax-H3-Image model (MiniMax-AI/MiniMax-H3-Image) — the MiniMax H3-Image pipeline is built on ComfyUI's native support for it (its loading, image conditioning and VAE). The model files are not part of FunUI: they stay under the MiniMax-H3-Image Community License (Copyright © 2026 MiniMax. All Rights Reserved.), which excludes use in the European Union, the United Kingdom, the Republic of Korea and the United States, and are downloaded by you;
  • Sulphur AI (SulphurAI/Sulphur-3) - the H3 corrector setting: its trained corrector files and its ComfyUI nodes (network, residual cap) are the model for FunUI's own version, which reads the same files;
  • The Turbo sampler (stochastic flow step, polish step) rests on consistency models (Song, Dhariwal, Chen, Sutskever; arXiv 2303.01469), latent consistency models (Luo, Tan, Huang, Li, Zhao; arXiv 2310.04378) and the ancestral noise injection of k-diffusion by Katherine Crowson; its second-order late steps reuse Distilled Flow;
  • comfy-kitchen (Apache-2.0) - the int8 rotated weight format (Hadamard rotation per group of 256) that the native backend reads;
  • Qwen team (Alibaba, Apache-2.0) - the Qwen tokenizer vocabulary and merge files used by the H3 text encoder;

Without all of you, this project would've been impossible.

With <3

DigitalGarbage