惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
B
Blog
Hacker News: Ask HN
Hacker News: Ask HN
T
Troy Hunt's Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Engineering at Meta
Engineering at Meta
云风的 BLOG
云风的 BLOG
Attack and Defense Labs
Attack and Defense Labs
F
Full Disclosure
H
Help Net Security
H
Heimdal Security Blog
A
About on SuperTechFans
S
Security Affairs
V
V2EX
C
Cyber Attacks, Cyber Crime and Cyber Security
G
GRAHAM CLULEY
Martin Fowler
Martin Fowler
T
Tor Project blog
IT之家
IT之家
GbyAI
GbyAI
The Cloudflare Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
The Hacker News
The Hacker News
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Y
Y Combinator Blog
D
DataBreaches.Net
P
Proofpoint News Feed
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
The Register - Security
The Register - Security
H
Hacker News: Front Page
Forbes - Security
Forbes - Security
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
S
SegmentFault 最新的问题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
C
Cybersecurity and Infrastructure Security Agency CISA
博客园_首页
博客园 - 三生石上(FineUI控件)
B
Blog RSS Feed
N
News and Events Feed by Topic
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
宝玉的分享
宝玉的分享
U
Unit 42
V2EX - 技术
V2EX - 技术
S
Securelist
N
Netflix TechBlog - Medium

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
aMuseMe: When Small Models Compose a Visual Symphony
Namit Arora · 2026-06-16 · via DEV Community

Namit Arora

Field Notes from "An Adventure in Thousand Token Wood" — Build Small Hackathon 2026


Music videos are deeply personal artifacts. They transform a song from something you hear into something you see and feel. But creating even a simple lyric video — the kind where words appear in sync with the music — is a tedious, manual process. You're keyframing word timings in a video editor, aligning text to beats by ear, hunting for stock footage that "fits the vibe." Hours of work for a 3-minute song.

We built aMuseMe to ask a different question: What if you just dropped an audio file and got a complete, stylized lyric video back? No lyrics needed. No timeline editing. No stock footage hunting. Just music in, video out.

And we did it with 3.5 billion parameters total.


The Idea: Kinetic Typography Meets Small AI

Kinetic typography — words that move, scale, and animate in sync with spoken audio — is one of the most engaging ways to present text on screen. Music lyric videos are a perfect application: every word has an exact timestamp, and every line has an emotional mood that could inform how it looks.

We imagined a pipeline where:

  1. An AI listens to the song and timestamps every word
  2. An AI reads the lyrics and decides how to break them into display lines
  3. An AI illustrates each section with a matching background painting
  4. A renderer animates it all into a smooth, 30fps HD video

The catch: all four steps had to fit inside the hackathon's 32B parameter budget. No cloud APIs. Everything local.


The Architecture: Four Small Models, One Pipeline

Stage 1: The Listener — Whisper large-v3 (~1.55B)

We use faster-whisper (a CTranslate2-optimized port) to extract word-level timestamps from raw audio. Not sentence-level — word-level. When the singer says "heart" at exactly 4.72 seconds, we know it starts at 4.72s and ends at 5.01s.

This precision is what makes the final video feel alive. Words don't just appear line-by-line; each word lights up at the exact millisecond it's sung.

The tuning rabbit hole: Getting accurate word timestamps from songs (not clean speech) required extensive experimentation:

  • condition_on_previous_text=True dramatically improves accuracy — Whisper uses its own previous output as context, so it "remembers" the song's vocabulary. But this causes infinite hallucination loops during instrumental breaks (Whisper fills the silence with repeated phantom lyrics).
  • VAD (Voice Activity Detection) solves the hallucination problem. We use aggressive thresholds — min_silence_duration_ms=2000, speech_pad_ms=2000, min_speech_duration_ms=50 — so Whisper only sees audio segments where someone is actually singing.
  • We started with whisper-base (74M params) for speed, but word boundary accuracy was poor for fast vocals. large-v3 was the sweet spot: accurate enough for songs, and still well within the 32B budget.

Stage 2: The Director — MiniCPM5-1B + Outlines

This is the creative brain of the pipeline. Raw Whisper output is a flat list of timestamped words — but a lyric video needs lines. "Every heartbeat echoes feel like grooving my veins" needs to become:

Every heartbeat echoes        ← line 1
feel like grooving my veins   ← line 2

A rule-based approach (split on silence gaps, cap at 7 words) works, but it produces mechanical, unnatural breaks. An LLM understands phrase structure — it knows "breaking all of these chains" should stay together.

We use MiniCPM5-1B (by OpenBMB, one of the hackathon's anchor sponsors) — a 1B-parameter language model that's small enough to run alongside Whisper and SD-Turbo on a single GPU. For each chunk of ~10 words, the model:

  1. Splits words into display lines — deciding how many words belong on each line
  2. Picks a frame animationzoom_in for emphasis, flash for a dramatic hit, fade_to_black for a quiet ending, pan_left/pan_right for gentle movement

The structured generation breakthrough: The biggest challenge with small LLMs is output reliability. A 1B model often produces malformed JSON, missing fields, or hallucinated keys. We solved this completely with Outlines — a library that constrains the LLM's token generation to match a Pydantic schema at decode time. The model literally cannot produce invalid JSON. No retries, no regex extraction, no parsing failures.

from outlines import from_transformers, Generator

class Frame(BaseModel):
    count: int  # how many words on this line
    frame_animation: FrameAnim  # zoom_in, flash, pan_left, etc.

class SongFrames(BaseModel):
    frames: List[Frame]

model = from_transformers(hf_model, tokenizer)
generator = Generator(model, SongFrames)  # schema-enforced!
result = generator(prompt, max_new_tokens=256)
# result is ALWAYS valid SongFrames — guaranteed

Stage 3: The Illustrator — SD-Turbo (~865M)

For each pair of lyric lines, we generate a cinematic background image using SD-Turbo (Stability AI's distilled Stable Diffusion model). The magic of SD-Turbo: it generates high-quality images in a single inference step with guidance_scale=0.0.

We merge the lyric text with the user's style prompt:

"neon-lit futuristic city at night, vibrant glowing colors, 
 cyberpunk aesthetic, breaking all of these chains"

For a 3-minute song with ~15 storyboard images, the entire background generation step takes ~2 seconds on GPU. The backgrounds are then darkened (55% overlay) so white/neon lyric text remains readable on any generated image.

Stage 4: The Renderer — Pillow + FFmpeg

The final stage is a custom frame-by-frame renderer built with Pillow:

  • Word-level highlighting: Words in the current line are shown in the theme's active color; unspoken words are dimmed. As each word's timestamp arrives, it lights up.
  • Frame-level animations: The LLM-chosen animation (zoom, pan, flash, fade) is applied to the entire text block, creating cinematic movement.
  • Smart text wrapping: Long lines automatically break across multiple rows instead of shrinking to unreadable sizes.
  • Cross-fade transitions: Background images blend smoothly with 1-second alpha transitions.

The frames are streamed as raw RGB bytes directly to an FFmpeg subprocess via stdin pipe — no temp files written to disk. This avoids the I/O bottleneck that plagues cloud runners and keeps the assembly step near-instantaneous.


What Makes This "Thousand Token Wood"?

Track 2 asks for something delightful that wouldn't exist without AI. aMuseMe isn't an AI chatbot or a productivity tool — it's a creative instrument. You feed it a song, and four small AI models collaborate to produce something that would take a human editor hours:

  • Would you show a friend? Absolutely. "Drop your favorite song and get a lyric video in 90 seconds" is an instant demo.
  • Is AI load-bearing? Remove any of the four models and the experience collapses. Without Whisper, no word sync. Without MiniCPM5-1B, ugly line breaks and no animation direction. Without SD-Turbo, no visual atmosphere.
  • Is it original? We haven't seen another project that chains speech-to-text → structured LLM direction → text-to-image → kinetic typography rendering in a single pipeline. The "AI as video director" concept — where the LLM doesn't just format text but actually makes creative decisions about animation — is, to our knowledge, novel.
  • Is it polished? Three visual themes, four font families, a cyberpunk-inspired dark UI, sample songs to try instantly, and a one-click generation button.

Off the Grid: No Cloud APIs

The entire pipeline runs on-device. Whisper, MiniCPM5-1B, SD-Turbo, and Demucs are all local models loaded into GPU memory. No OpenAI API, no Stability API, no cloud dependencies. On HF Spaces, we use ZeroGPU (@spaces.GPU) for efficient shared-GPU allocation, but the computation is still happening on HF's own hardware — not calling out to external services.


What We Learned

  1. Structured generation changes everything for small models. A 1B model that always outputs valid JSON via Outlines is more reliable than a 70B model that you hope will format correctly. The constraint isn't a limitation — it's a superpower.

  2. Word-level sync is the "wow" factor. Line-by-line lyrics feel like karaoke from 2005. Word-by-word highlighting with millisecond precision feels magical. The difference in viewer engagement is enormous.

  3. Whisper needs babysitting for music. VAD, condition-on-previous-text, compression ratio thresholds, temperature scheduling — we spent more time tuning Whisper parameters than writing the renderer. Songs are fundamentally harder than speech.

  4. Pipes over disk. Streaming raw bytes to FFmpeg via stdin was a 10× performance win over writing temp frames to disk. On cloud runners with slow I/O, this is the difference between a 10-second and a 100-second pipeline.

  5. One-step diffusion is a game-changer for pipelines. SD-Turbo generating 15 images in 2 seconds means background generation is no longer a bottleneck. It's fast enough to be a utility, not a feature.


Try it yourself — drop a song and watch the magic happen:
👉 aMuseMe on Hugging Face Spaces

OUTPUT song VIDEO;

https://youtu.be/GBOrS2fsQ2E

APP DEMO VIDEO:

https://youtu.be/6RJwgFu6LHQ