Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 5 min read How-to mediumAdept

Build awesome datasets for video generation

A three-stage pipeline for building small video-generation fine-tuning datasets: acquisition with yt-dlp and scene splitting, per-frame filtering for watermarks, aesthetics and NSFW content plus an OpenCV motion score, and captioning with Florence-2 or a video captioner like Qwen2VL. Filtering the crush-smol dataset on pwatermark < 0.1 and aesthetic > 5.5 kept only 47 of 1493 clips. The authors conclude that averaging watermark scores across frames with a 0.2–0.3 threshold works better, and that aesthetic scores are biased toward colorful, regular shapes and suit a minimum cutoff of about 4.25–4.5. The resulting datasets were used to fine-tune CogVideoX-5B with finetrainers for effects like Crush and Cakeify.

Assumes: diffusion model fine-tuning basicsimage classifiers

Related posts

  • FineVideo: behind the scenes

    Hugging Face mediumAdept

    FineVideo is a 43K-video, 3.4K-hour dataset distilled from 1.9M English YouTube-Commons videos, annotated with scene splits, narrative details, descriptions and QA pairs. Videos were filtered by word density (≥0.5 words/sec) and by visual dynamism using FFmpeg's freezedetect with an exaggerated noise parameter, leaving 600K. They were then categorized against a custom 126-category taxonomy with Llama 3.1 70B, and a selection algorithm balanced categories, engagement and channel representation to hit 4K hours. Gemini 1.5 Pro lost annotation quality on videos over about 10 minutes and when constrained by complex JSON schemas, so the pipeline has Gemini generate free text and uses GPT-4o in a second step to structure it.

  • PRX Part 4: Our Data Strategy

    Hugging Face hardMaster

    PRX's pre-training corpus for a 7B text-to-image model is assembled from public and internal datasets, re-captioned with a VLM into long dense paragraphs, curated in Lance and streamed to training as Mosaic Data Shards. The pipeline favors breadth over aesthetic filtering and relies on faithful captions to turn imperfections like text or logos into promptable attributes. Measured decisions include storing images as JPEG quality 92, since PNG-vs-JPEG training runs were indistinguishable, and computing Qwen3-VL text latents on the fly for only a ~3–4% throughput cost. Over-fragmented Lance tables made queries slow until compaction to ~1M rows per fragment, and long Qwen2.5-VL captions clearly beat short LLaVA captions on FID, CMMD and DINO-MMD.

  • Open Preference Dataset for Text-to-Image Generation by the 🤗 Community

    Hugging Face easyNovice

    Data is Better Together released an Apache 2.0 text-to-image preference dataset of 10K pairs, with over 30K annotations from more than 250 community members collected in under two weeks. Imgsys prompts were deduplicated, filtered for NSFW content with text and image classifiers plus manual review, and rewritten with distilabel across style categories and simple versus complex variants. Images came from FLUX.1-dev and Stable Diffusion 3.5 Large. Annotators found FLUX better for anime, manga and 3D, and SD3.5 better for cinematic and art styles. A LoRA fine-tune of FLUX-dev on the chosen samples improved its weaker art and cinematic outputs.

  • A Dive into Text-to-Video Models

    Hugging Face easyNovice

    Text-to-video generation is much harder than text-to-image because frames must stay spatially and temporally consistent, training compute is high, paired datasets are scarce and noisy, and a single caption cannot describe events unfolding over time. Research has moved through three waves: early GAN/VAE models (TGANs-C), transformer-based systems (Phenaki, NUWA, CogVideo, Make-A-Video) and current diffusion models (VDM, MagicVideo, Tune-a-Video, Text2Video-Zero, NUWA-XL). Most of these train on short clips and rely on sliding-window generation, which creates context gaps in longer videos. Datasets such as WebVid, HowTo100M and CelebV-Text are covered, along with how to run ModelScope and Text2Video-Zero through Hugging Face Diffusers and Spaces, including a short code example.

  • State of open video generation models in Diffusers

    Hugging Face mediumAdept

    Open video generation models such as HunyuanVideo, CogVideoX, LTX-Video, Mochi-1 and Allegro share a common architecture: T5-style text encoders, a DiT-based denoiser over 3D spatio-temporal tokens, a spatially and temporally compressing VAE, and a scheduler. Diffusers runs them in a few lines of code but they need a lot of memory, about 60 GB for HunyuanVideo at default settings. Benchmarks combining bitsandbytes/FP8 quantization, CPU and group offloading, VAE tiling and layerwise casting bring HunyuanVideo down to about 6.6 GB with little extra latency. Timestep and guidance distillation speed up generation, and the finetrainers repo supports LoRA fine-tuning.

The quest for software engineering knowledge.

Look:
Layout: