Skip to content

koshimazaki/Koshi-Flux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

██╗  ██╗ ██████╗ ███████╗██╗  ██╗██╗    ███████╗██╗     ██╗   ██╗██╗  ██╗
██║ ██╔╝██╔═══██╗██╔════╝██║  ██║██║    ██╔════╝██║     ██║   ██║╚██╗██╔╝
█████╔╝ ██║   ██║███████╗███████║██║    █████╗  ██║     ██║   ██║ ╚███╔╝
██╔═██╗ ██║   ██║╚════██║██╔══██║██║    ██╔══╝  ██║     ██║   ██║ ██╔██╗
██║  ██╗╚██████╔╝███████║██║  ██║██║    ██║     ███████╗╚██████╔╝██╔╝ ██╗
╚═╝  ╚═╝ ╚═════╝ ╚══════╝╚═╝  ╚═╝╚═╝    ╚═╝     ╚══════╝ ╚═════╝ ╚═╝  ╚═╝
░░░░░░░░░░░░░░░░ Motion Pipeline for BFL FLUX models ░░░░░░░░░░░░░░░░░░░░

V2V motion pipeline for FLUX.2 Klein models. Optical flow, temporal blending, color matching. Inspired by Deforum.

ComfyUI: ComfyUI-Koshi-Nodes

genctr_morph_v4.mp4
Klein 4B — hybrid video with strength ramp and prompt scheduling

Modes

Mode Pipeline Status
Video (Light) Flow → Warp → VAE → BFL Denoise ✅ Best
Video + Motion + Motion engine schedules
Pixel + FeedbackProcessor + VAE roundtrips ✅ Stable
Latent WarpedNoiseManager (no decode) ⚠️ Experimental

All modes: Diffusers VAE + BFL native denoise (flux2.sampling).

Install

pip install -e ./flux

Usage

# Diffusers (text2video)
python presets/diffusers/klein_diffusers.py --frames 30 -p "mystical forest"

# Hybrid V2V (recommended)
python presets/hybrid-v2v/klein_v2v_motion.py -i input.mp4 -p "oil painting"

# Native (experimental)
python presets/native/klein_native.py -i input.mp4 -p "watercolor"

Presets

presets/
├── diffusers/       # Full diffusers pipeline
├── hybrid-v2v/      # Diffusers VAE + BFL denoise
└── native/          # Pure BFL SDK
Folder Preset Features
diffusers klein_diffusers Text2Video with zoom
hybrid-v2v klein_v2v_motion Optical flow V2V
hybrid-v2v klein_v2v_deforum + Motion schedules
native klein_native Pure BFL, no diffusers

Parameters

-i, --input       Input video
-o, --output      Output path
-p, --prompt      Style prompt
-s, --strength    Denoise (0.3-0.5)
--zoom            "0:(1.0), 60:(1.05)"
--angle           "0:(0), 30:(5)"
--seed            Random seed

Requirements

  • Python 3.10+, CUDA 8GB+ (Klein 4B), ffmpeg

License

Apache 2.0 — Uses FLUX.2 by Black Forest Labs.

About

Motion pipeline for BFL FLUX models inspired by Deforum

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors