code2video/index.html
2025-10-04 03:31:03 +00:00

1015 lines
48 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="en" class="h-100" data-bs-theme="auto">
<head>
<script src="./assets/js/color-modes.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Code2Video: A Code-centric Paradigm for Educational Video Generation">
<meta name="generator" content="Hugo 0.115.4">
<title>Code2Video</title>
<link rel="icon" href="./assets/images/logo.ico" type="image/x-icon">
<link rel="canonical" href="https://getbootstrap.com/docs/5.3/examples/cover/">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3">
<link href="./assets/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
.b-example-divider {
width: 100%;
height: 3rem;
background-color: rgba(0, 0, 0, .1);
border: solid rgba(0, 0, 0, .15);
border-width: 1px 0;
box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}
.b-example-vr {
flex-shrink: 0;
width: 1.5rem;
height: 100vh;
}
.bi {
vertical-align: -.125em;
fill: currentColor;
}
.nav-scroller {
position: relative;
z-index: 2;
height: 2.75rem;
overflow-y: hidden;
}
.nav-scroller .nav {
display: flex;
flex-wrap: nowrap;
padding-bottom: 1rem;
margin-top: -1px;
overflow-x: auto;
text-align: center;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
.btn-bd-primary {
--bd-violet-bg: #712cf9;
--bd-violet-rgb: 112.520718, 44.062154, 249.437846;
--bs-btn-font-weight: 600;
--bs-btn-color: var(--bs-white);
--bs-btn-bg: var(--bd-violet-bg);
--bs-btn-border-color: var(--bd-violet-bg);
--bs-btn-hover-color: var(--bs-white);
--bs-btn-hover-bg: #6528e0;
--bs-btn-hover-border-color: #6528e0;
--bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
--bs-btn-active-color: var(--bs-btn-hover-color);
--bs-btn-active-bg: #5a23c8;
--bs-btn-active-border-color: #5a23c8;
}
.bd-mode-toggle {
z-index: 1500;
}
.text-highlight {
color: #e06766;
}
</style>
<!-- Custom styles for this template -->
<link href="./assets/cover.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
</head>
<body class="text-center text-bg-dark">
<svg xmlns="http://www.w3.org/2000/svg" class="d-none">
<symbol id="check2" viewBox="0 0 16 16">
<path
d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" />
</symbol>
<symbol id="circle-half" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z" />
</symbol>
<symbol id="moon-stars-fill" viewBox="0 0 16 16">
<path
d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z" />
<path
d="M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z" />
</symbol>
<symbol id="sun-fill" viewBox="0 0 16 16">
<path
d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z" />
</symbol>
</svg>
<main>
<section
class="text-center container-fluid min-vh-100 d-flex align-items-center justify-content-center position-relative"
style="background-color: black; overflow: hidden;">
<!-- Matrix Rain 背景 -->
<canvas id="matrixRain"></canvas>
<!-- 前景内容 -->
<div class="mx-auto text-white position-relative" style="opacity: 0.95; z-index: 2;">
<h1 class="display-2 fw-bold title text-white text-center">
<div class="d-flex align-items-center justify-content-center animate-fade-in">
<img src="./assets/images/logo.ico" alt="Logo" class="animate-breath"
style="height: 60px; width: 60px; margin-right: 15px;">
<span>Code2Video: A Code-centric Paradigm</span>
</div>
<div class="animate-fade-in" style="animation-delay: 0.5s;">
for Educational Video Generation
</div>
</h1>
<p class="author-list mt-4">
<a href='https://chenanno.github.io/' target='_blank' class="text-decoration-none text-light">
Yanzhe Chen<sup>*</sup>
</a>&emsp;
<a href='https://qhlin.me/' target='_blank' class="text-decoration-none text-light">
Kevin Qinghong Lin<sup>*</sup>
</a>&emsp;
<a href='https://sites.google.com/view/showlab/home?authuser=0' target='_blank'
class="text-decoration-none text-light">
Mike Zheng Shou<sup>&#x2709</sup>
</a>
</p>
<p class="institution-list">
<a href='https://sites.google.com/view/showlab/home?authuser=0' target='_blank'
class="text-decoration-none text-light">
<a style="color: #70a8dc;">S</a><a style="color: #6fb051;">h</a><a
style="color: #e06766;">o</a><a style="color: #f7b26b;">w</a>
Lab, National University of Singapore
</a>
<br>
<small><sup>*</sup> Equal Contribution</small>&emsp;
<small><sup>&#x2709</sup> Corresponding Author</small>
</p>
<p class="mt-4">
<a href="https://github.com/showlab/Code2Video/" class="btn btn-outline-light">
Code
</a>
<a href="https://arxiv.org/abs/2510.01174" class="btn btn-outline-light">
arXiv
</a>
<a href="https://github.com/showlab/Code2Video/blob/main/assets/code2video-arxiv.pdf" class="btn btn-outline-light">
PDF
</a>
</p>
</div>
<!-- 动画样式 -->
<style>
/* Matrix Rain 背景 */
#matrixRain {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
/* Logo 轻微呼吸动画 */
@keyframes breath {
0%,
100% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
}
.animate-breath {
animation: breath 3s infinite ease-in-out;
}
/* 文字淡入动画 */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-fade-in {
opacity: 0;
animation: fadeIn 1.2s forwards;
}
</style>
<!-- Matrix Rain 脚本 -->
<script>
const canvas = document.getElementById('matrixRain');
const ctx = canvas.getContext('2d');
// 调整画布大小
canvas.height = window.innerHeight;
canvas.width = window.innerWidth;
// const letters = '学而时习之不亦说乎教学相长也学而不厌诲人不倦大学之道在明明德在亲民止于至善ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
const letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
const lettersArray = letters.split('');
const fontSize = 16;
const columns = canvas.width / fontSize; // 列数
const drops = Array(Math.floor(columns)).fill(1);
function draw() {
// 用半透明黑色刷屏,让旧字符逐渐消失(避免初始整屏覆盖)
ctx.fillStyle = 'rgba(0, 0, 0, 0.05)';
ctx.fillRect(0, 0, canvas.width, canvas.height);
// 设置更浅的绿色(加透明度,避免喧宾夺主)
ctx.fillStyle = 'rgba(0, 255, 0, 0.3)';
ctx.font = fontSize + 'px monospace';
for (let i = 0; i < drops.length; i++) {
const text = lettersArray[Math.floor(Math.random() * lettersArray.length)];
ctx.fillText(text, i * fontSize, drops[i] * fontSize);
// 随机重置
if (drops[i] * fontSize > canvas.height && Math.random() > 0.975) {
drops[i] = 0;
}
drops[i]++;
}
}
setInterval(draw, 33);
// 自适应窗口大小
window.addEventListener('resize', () => {
canvas.height = window.innerHeight;
canvas.width = window.innerWidth;
});
</script>
</section>
<!-- <div class="album py-5 bg-body-tertiary"> -->
<div class="album py-5 bg-dark">
<h1 style="color: white; font-weight: normal;">
Showcase of Code2Video
</h1>
<h4> <strong style="color: #70a8dc;">The videos below are generated via <b>Coding</b>.</strong> </h4>
</br>
<div class="container">
<div class="row row-cols-1 row-cols-md-2 g-4" id="gallery-container">
<div class="col" data-item>
<div class="card hover-card">
<video class="card-img-top card-img-bottom" muted autoplay="autoplay" loop="loop"
width="100%">
<source src="./assets/videos/gallery/01.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="hover-text">
<div class="card-body">
<h5 class="card-title">Hanoi Problem</h5>
<p style="font-size:0.9rem; color:#ccc; margin-top:-5px;">Puzzles</p>
</div>
</div>
</div>
</div>
<div class="col" data-item>
<div class="card hover-card">
<video class="card-img-top card-img-bottom" muted autoplay="autoplay" loop="loop"
width="100%">
<source src="./assets/videos/gallery/02.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="hover-text">
<div class="card-body">
<h5 class="card-title">Neural Network Structure</h5>
<p style="font-size:0.9rem; color:#ccc; margin-top:-5px;">Neural Networks</p>
</div>
</div>
</div>
</div>
<div class="col" data-item>
<div class="card hover-card">
<video class="card-img-top card-img-bottom" muted autoplay="autoplay" loop="loop"
width="100%">
<source src="./assets/videos/gallery/03.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="hover-text">
<div class="card-body">
<h5 class="card-title">History and Definition of π</h5>
<p style="font-size:0.9rem; color:#ccc; margin-top:-5px;">Calculus</p>
</div>
</div>
</div>
</div>
<div class="col" data-item>
<div class="card hover-card">
<video class="card-img-top card-img-bottom" muted autoplay="autoplay" loop="loop"
width="100%">
<source src="./assets/videos/gallery/04.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="hover-text">
<div class="card-body">
<h5 class="card-title">Space-filling Curves</h5>
<p style="font-size:0.9rem; color:#ccc; margin-top:-5px;">Topology</p>
</div>
</div>
</div>
</div>
<div class="col" data-item style="display:none;">
<div class="card hover-card">
<video class="card-img-top card-img-bottom" muted autoplay="autoplay" loop="loop"
width="100%">
<source src="./assets/videos/gallery/05.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="hover-text">
<div class="card-body">
<h5 class="card-title">Exponential Growth and Logistic Growth</h5>
<p style="font-size:0.9rem; color:#ccc; margin-top:-5px;">Epidemic</p>
</div>
</div>
</div>
</div>
<div class="col" data-item style="display:none;">
<div class="card hover-card">
<video class="card-img-top card-img-bottom" muted autoplay="autoplay" loop="loop"
width="100%">
<source src="./assets/videos/gallery/06.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="hover-text">
<div class="card-body">
<h5 class="card-title">Euler's Formula -> e^πi = -1</h5>
<p style="font-size:0.9rem; color:#ccc; margin-top:-5px;">Calculus</p>
</div>
</div>
</div>
</div>
<div class="col" data-item style="display:none;">
<div class="card hover-card">
<video class="card-img-top card-img-bottom" muted autoplay="autoplay" loop="loop"
width="100%">
<source src="./assets/videos/gallery/07.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="hover-text">
<div class="card-body">
<h5 class="card-title"> Pure Fourier Series </h5>
<p style="font-size:0.9rem; color:#ccc; margin-top:-5px;">Physics</p>
</div>
</div>
</div>
</div>
<div class="col" data-item style="display:none;">
<div class="card hover-card">
<video class="card-img-top card-img-bottom" muted autoplay="autoplay" loop="loop"
width="100%">
<source src="./assets/videos/gallery/08.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="hover-text">
<div class="card-body">
<h5 class="card-title">The Determinant</h5>
<p style="font-size:0.9rem; color:#ccc; margin-top:-5px;">Linear Algebra</p>
</div>
</div>
</div>
</div>
<div class="col" data-item style="display:none;">
<div class="card hover-card">
<video class="card-img-top card-img-bottom" muted autoplay="autoplay" loop="loop"
width="100%">
<source src="./assets/videos/gallery/09.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="hover-text">
<div class="card-body">
<h5 class="card-title"> Large Language Model </h5>
<p style="font-size:0.9rem; color:#ccc; margin-top:-5px;">Computer Science</p>
</div>
</div>
</div>
</div>
<div class="col" data-item style="display:none;">
<div class="card hover-card">
<video class="card-img-top card-img-bottom" muted autoplay="autoplay" loop="loop"
width="100%">
<source src="./assets/videos/gallery/10.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="hover-text">
<div class="card-body">
<h5 class="card-title">NN Learning and Intuitive Backpropagation</h5>
<p style="font-size:0.9rem; color:#ccc; margin-top:-5px;">Neural Networks</p>
</div>
</div>
</div>
</div>
</div>
<div class="text-center mt-3">
<button class="btn btn-outline-light" id="loadMoreBtn">Load More</button>
</div>
</div>
</div>
<!-- 局部样式:白底黑字 -->
<style>
.carousel-light {
background-color: #fff;
color: #000;
}
.carousel-light h1,
.carousel-light h4,
.carousel-light h5,
.carousel-light p,
.carousel-light .card-body {
color: #000 !important;
}
/* 指示点(小圆点) */
.carousel-light .carousel-indicators [data-bs-target] {
background-color: #000;
}
.carousel-light .carousel-indicators .active {
background-color: #000;
}
/* 左右箭头(使用 filter 让白色箭头变黑或直接反色) */
.carousel-light .carousel-control-prev-icon,
.carousel-light .carousel-control-next-icon {
filter: invert(1) grayscale(1);
}
/* 卡片背景与边框(避免默认深色主题影响) */
.carousel-light .card {
background-color: #fff;
border: 1px solid #e5e5e5;
}
/* 覆盖你之前 hover-card 的深色悬浮层(若有) */
.carousel-light .hover-card .hover-text {
color: #000;
/* 若有背景半透明层且为深色,可改为浅背景 */
/* background-color: rgba(255,255,255,0.7); */
}
</style>
<div class="carousel-light">
<div id="myCarousel" class="carousel slide py-5" data-bs-ride="carousel">
<h1>Comparison</h1>
</br>
<h4> <strong style="color: #e06766;">How Diffusion models perform on these videos? </strong> </h4>
</br>
<div class="carousel-indicators">
<button type="button" data-bs-target="#myCarousel" data-bs-slide-to="0" class="active"
aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#myCarousel" data-bs-slide-to="1"
aria-label="Slide 2"></button>
<button type="button" data-bs-target="#myCarousel" data-bs-slide-to="2"
aria-label="Slide 3"></button>
<button type="button" data-bs-target="#myCarousel" data-bs-slide-to="3"
aria-label="Slide 4"></button>
<button type="button" data-bs-target="#myCarousel" data-bs-slide-to="4"
aria-label="Slide 5"></button>
<button type="button" data-bs-target="#myCarousel" data-bs-slide-to="5"
aria-label="Slide 6"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<div class="container">
<div class="row row-cols-md-3 g-4" id="comparison-1">
<div class="col" style="width: 33%;">
<h4>Veo3</h4>
<div class="card hover-card">
<video class="card-img-top card-img-bottom" muted autoplay="autoplay"
loop="loop" width="100%">
<source src="./assets/videos/comparison/veo3/01.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
<div class="col" style="width: 33%;">
<h4>Wan-2.2</h4>
<div class="card hover-card">
<video class="card-img-top card-img-bottom" muted autoplay="autoplay"
loop="loop" width="100%">
<source src="./assets/videos/comparison/wan/Hanoi.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
<div class="col" style="width: 33%;">
<h4><strong style="color: #e06766;">Code2Video</strong></h4>
<div class="card hover-card">
<video class="card-img-top card-img-bottom" muted autoplay="autoplay"
loop="loop" width="100%">
<source src="./assets/videos/gallery/01.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
</br>
<h5 style="font-style: italic;"> Hanoi Problem </h5>
</div>
</div>
<div class="carousel-item">
<div class="container">
<div class="row row-cols-md-3 g-4" id="comparison-2">
<div class="col" style="width: 33%;">
<h4>Veo3</h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/comparison/veo3/euler.mp4"
type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
<div class="col" style="width: 33%;">
<h4>Wan-2.2</h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/comparison/wan/euler.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
<div class="col" style="width: 33%;">
<h4><strong style="color: #e06766;">Code2Video</strong></h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/gallery/06.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
</div>
</br>
<h5 style="font-style: italic;"> Euler's Formula -> e^πi = -1 </h5>
</div>
</div>
<div class="carousel-item">
<div class="container">
<div class="row row-cols-md-3 g-4" id="comparison-3">
<div class="col" style="width: 33%;">
<h4>Veo3</h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/comparison/veo3/03.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
<div class="col" style="width: 33%;">
<h4>Wan-2.2</h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/comparison/wan/03.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
<div class="col" style="width: 33%;">
<h4><strong style="color: #e06766;">Code2Video</strong></h4>
</h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/gallery/04.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
</div>
</br>
<h5 style="font-style: italic;"> Space-filling Curves </h5>
</div>
</div>
<div class="carousel-item">
<div class="container">
<div class="row row-cols-md-3 g-4" id="comparison-3">
<div class="col" style="width: 33%;">
<h4>Veo3</h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/comparison/veo3/LLM.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
<div class="col" style="width: 33%;">
<h4>Wan-2.2</h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/comparison/wan/LLM.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
<div class="col" style="width: 33%;">
<h4><strong style="color: #e06766;">Code2Video</strong></h4>
</h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/gallery/09.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
</div>
</br>
<h5 style="font-style: italic;"> Large Language Model </h5>
</div>
</div>
<div class="carousel-item">
<div class="container">
<div class="row row-cols-md-3 g-4" id="comparison-3">
<div class="col" style="width: 33%;">
<h4>Veo3</h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/comparison/veo3/determinant.mp4"
type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
<div class="col" style="width: 33%;">
<h4>Wan-2.2</h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/comparison/wan/determinant.mp4"
type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
<div class="col" style="width: 33%;">
<h4><strong style="color: #e06766;">Code2Video</strong></h4>
</h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/gallery/08.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
</div>
</br>
<h5 style="font-style: italic;"> The Determinant </h5>
</div>
</div>
<div class="carousel-item">
<div class="container">
<div class="row row-cols-md-3 g-4" id="comparison-3">
<div class="col" style="width: 33%;">
<h4>Veo3</h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/comparison/veo3/fourier.mp4"
type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
<div class="col" style="width: 33%;">
<h4>Wan-2.2</h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/comparison/wan/fourier.mp4"
type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
<div class="col" style="width: 33%;">
<h4><strong style="color: #e06766;">Code2Video</strong></h4>
</h4>
<div class="card hover-card">
<div class="ratio ratio-16x9">
<video muted autoplay loop class="w-100 h-100" style="object-fit: cover;">
<source src="./assets/videos/gallery/07.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</div>
</div>
</br>
<h5 style="font-style: italic;"> Pure Fourier Series </h5>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#myCarousel" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#myCarousel" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
<style>
/* 提高按钮层级,避免被视频覆盖;扩大左右热区;向两侧轻微外移 */
#myCarousel .carousel-control-prev,
#myCarousel .carousel-control-next {
z-index: 5;
/* 如仍被覆盖,可提升到 10/100 */
width: 10%;
/* 扩大点击区域 */
}
#myCarousel .carousel-control-prev {
left: 0;
transform: translateX(-10px);
/* 向左外移 10px可调 */
}
#myCarousel .carousel-control-next {
right: 0;
transform: translateX(10px);
/* 向右外移 10px可调 */
}
/* 可选:让箭头在深色视频上更清晰(添加微弱阴影) */
#myCarousel .carousel-control-prev-icon,
#myCarousel .carousel-control-next-icon {
filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6));
}
</style>
</div>
</div>
<div class="album py-5 col-lg-5 mx-auto bg-dark text-white">
<div class="container">
<h1>Abstract</h1>
</br>
<p style="text-align: justify;">
While recent generative models advance pixel-space video synthesis, they remain limited in
producing
professional ecu videos, which demand disciplinary knowledge, precise visual structures, and
coherent transitions, limiting their applicabilityl in educational scenarios. Intuitively, such
requirements are better addressed through the manipulation of a renderable environment, which
can be
explicitly controlled via logical commands (<i>e.g., code</i>). In this work, we propose
<b>Code2Video</b>, a
codecentric agent framework for generating educational videos via executable Python code. The
framework
comprises three collaborative agents: <i>(i) Planner</i>, which structures lecture content into
temporally
coherent flows and prepares corresponding visual assets; <i>(ii) Coder</i>, which converts
structured
instructions into executable Python codes while incorporating scope-guided auto-fix to enhance
efficiency; and <i>(iii) Critic</i>, which leverages vision-language models (VLM) with anchor
visual
prompts to refine spatial layout and ensure clarity. To support systemati evaluation, we build
<b>MMMC</b>,
a benchmark of professionally produced, long-form, disciplinespecific educational videos. We
evaluate
MMMC across diverse dimensions, including VLM-as-a-Judge aesthetic scores, code efficiency, and
particularly, <b>TeachQuiz</b>, a novel end-to-end knowledge transfer measured by a VLM's
ability to
learn
from the generated videos. Our results demonstrate the potential of Code2Video as a scalable,
interpretable, and controllable approach for educational video generation.
</p>
</div>
</div>
<div class="album py-5 bg-body-tertiary text-dark">
<div class="container col-lg-8 mx-auto">
<h1>Method</h1>
</br>
<p style="text-align: justify;">
<b>Illustration of Code2Video.</b> Given a user inquiry, Code2Video aims to render an
educational
video
via Manim code writing: (i) the Planner converts a learning topic into a storyboard and
retrieves
visual assets; (ii) the Coder performs parallel code synthesis with scope-guided refinement to
ensure efficiency and temporal consistency; (iii) the Critic uses anchor visual prompts to
iteratively adjust spatial layout and clarity, yielding reproducible, pedagogically structured
videos.
</p>
<img src="./assets/images/method.png" style="width: 100%;">
</div>
</div>
</main>
<script>
$(document).ready(function () {
$('#loadMoreBtn').click(function () {
const hiddenItems = $('[data-item]:hidden');
hiddenItems.slice(0, 10).fadeIn(); // Adjust this number to show more or fewer items
// Optionally hide the "Load More" button if there are no more hidden items
if ($('[data-item]:hidden').length <= 2) {
$('#loadMoreBtn').fadeOut();
}
});
});
</script>
<!-- <script>
$(document).ready(function () {
const batchSize = 10;
$('#loadMoreBtn').on('click', function () {
const $hidden = $('[data-item]:hidden');
const nHidden = $hidden.length;
// 展示本次批量
$hidden.slice(0, batchSize).fadeIn();
// 展示后剩余数量
const remaining = Math.max(nHidden - batchSize, 0);
if (remaining === 0) {
$('#loadMoreBtn').fadeOut();
}
});
});
</script> -->
<!-- ====== CSS确保即使视频未加载也占位 ====== -->
<style>
/* 保证 video 即使未加载也有可见区域,便于发现问题 */
#video-gallery .card video {
min-height: 140px;
background: #000;
display: block;
object-fit: cover;
}
/* 标记无法访问的视频卡片 */
.video-missing {
position: relative;
}
.video-missing::after {
content: "Video not found";
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
background: rgba(0, 0, 0, 0.6);
font-weight: 600;
}
</style>
<!-- <script>
// Function to shuffle an array randomly
function shuffleArray(array) {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]];
}
}
// Get all the video elements and shuffle their order
// const videoContainer = document.getElementById('video-container');
const videoContainer = document.getElementById('gallery-container');
const videoElements = Array.from(videoContainer.querySelectorAll('.col[data-item]'));
shuffleArray(videoElements);
// Append the shuffled video elements back to the container
videoElements.forEach((element) => {
videoContainer.appendChild(element);
});
</script> -->
<script src="./assets/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>