商汤今天开源了SenseNova 6.8 Code2Video:这是一个代码生成视频的模型,27B参数
原理是先生成视频特效的代码,而不是直接生成像素,这样后面改起来就更加工程化,适合做科普视频这种对于细节需要精确控制的b-roll
给佬放上链接:
Repository
OpenSenseNova/SenseNova-6.8-Code2Video
The first open-source model for code-driven video creation.
HF模型权重也开源了
huggingface.co
We’re on a journey to advance and democratize artificial intelligence through open source and open science.
模型的几个特点:
- 用代码制作视频:从一句创意或详细需求开始,生成可以预览的视频
- 用自然语言继续改:调整风格、颜色、元素和时间安排,继续完善已有结果
- 从参考视频开始:分析布局与运动,用代码重建视觉效果,再按要求修改
- 配套创作 Skill:帮助梳理想法、细化视频需求,并引导预览和修改
成片:
这段时钟阵列里,小表盘的指针共同组成大数字。它展示的是多个元素按时间协同运动,也是代码动画很直观的一类用途
纸海这段更偏插画动画,海浪、云和天气变化组成一个小场景,感觉很适合配一些心理学的概念去做explainer视频
书店这段则是逐步搭建场景。对产品展示、流程说明来说,让元素按顺序出现,本身就能把内容讲清楚,像纪念碑谷的风格
两个案例展示模型实际上是怎么修改和复刻视频的
案例一:机场复古翻页牌
第一版的需求是做一段 20 秒的「Departures」动态字体短片,用机场老式翻页牌呈现几组文字
第一次生成用的prompt:
Make a 20-second kinetic typography piece titled “Departures”: a split-flap board, like an old station departures board, whose flaps clatter through the alphabet to spell short messages.
乍一看效果还不错,但是有点太暗黑了,想给它换一种明亮点的风格,像酒店大堂一样,
于是用了这段prompt来修改:
Keep the messages, timing and flip mechanics, but restyle the film into a bright, symmetrical pastel hotel-lobby look: a soft pink wall, a gold-framed board centred on it, mint-green flaps with cream lettering, and a small brass clock above. Swap the dark spotlight for warm daylight and the music for a light pizzicato-and-glockenspiel waltz, keeping the flap clacks. Edit the existing source in place and overwrite output/final.mp4.
效果不错!把背景换了,翻页牌子也换成了绿色,和背景的粉色撞色,比较有对比度
但是感觉有点单调,决定再加上从上方飞过的飞机,以及拖着行李经过前景的旅客,并要求不要挡住提示牌文字,用的prompt是:
Keep the current design, messages, timing, flip mechanics, and audio. Add a small airplane flying smoothly overhead across the upper background, with a few travelers carrying luggage walking through the foreground without obscuring the board’s messages. Edit the existing source in place and overwrite output/final.mp4.
案例二:给模型一段产品demo视频作为参考,让模型复刻而且把产品名换掉
下面是Forma产品demo,以这段成片为参考(光上传一个MP4,没有提供原始代码或工程文件)
然后要求模型重建画面结构和运动,把产品名改成 KITE,画布换成浅绿色,没有多余prompt,没有多余skills
下面是结果:产品名改为 Kite,画布改为浅绿色
repo里有完整模型权重和创作 Skill,不过目前的参数量有点大,27B,所以INT4、INT8 量化版本计划后续提供,还是期待一下量化版本,到时候用我的卡跑一下