Spaces:
Running
Running
File size: 21,787 Bytes
916bc04 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 | <!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI视频换脸 - 瞬间成为主角</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#6d28d9',
secondary: '#8b5cf6',
dark: '#1f2937',
light: '#f9fafb'
},
fontFamily: {
'sans': ['Noto Sans SC', 'sans-serif']
}
}
}
}
</script>
<style>
body {
background: linear-gradient(135deg, #1a202c, #2d3748);
min-height: 100vh;
}
.upload-box {
border: 2px dashed #8b5cf6;
background: rgba(139, 92, 246, 0.05);
transition: all 0.3s ease;
}
.upload-box:hover, .upload-box.drag-over {
background: rgba(139, 92, 246, 0.15);
border-color: #c4b5fd;
}
.result-container {
background: linear-gradient(to right, #1f2937, #111827);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.progress-bar {
height: 8px;
background: #4b5563;
border-radius: 4px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #7c3aed, #a78bfa);
width: 65%;
transition: width 0.3s ease;
}
.preview-image {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 8px;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
}
.feature-card {
background: rgba(31, 41, 55, 0.7);
border: 1px solid #4b5563;
border-radius: 12px;
padding: 1.5rem;
transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
transform: translateY(-5px);
border-color: #8b5cf6;
}
.ai-badge {
background: rgba(139, 92, 246, 0.2);
border: 1px solid #8b5cf6;
}
@media (max-width: 768px) {
.feature-card {
padding: 1rem;
}
.flex-col-reverse-md {
flex-direction: column-reverse;
}
}
</style>
</head>
<body class="font-sans text-light">
<!-- 导航栏 -->
<nav class="bg-gradient-to-r from-dark to-gray-900 py-4 px-4 md:px-8 shadow-xl sticky top-0 z-50">
<div class="container mx-auto flex justify-between items-center">
<div class="flex items-center space-x-3">
<i class="fas fa-film text-3xl text-purple-500"></i>
<h1 class="text-2xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-purple-400 via-purple-300 to-indigo-400">
AI视频换脸助手
</h1>
</div>
<div class="flex space-x-4">
<button class="px-4 py-2 bg-purple-700 hover:bg-purple-600 rounded-md transition flex items-center">
<i class="fas fa-user mr-2"></i>登录
</button>
<button class="px-4 py-2 bg-primary hover:bg-purple-600 rounded-md transition flex items-center">
<i class="fas fa-rocket mr-2"></i>专业版
</button>
</div>
</div>
</nav>
<div class="container mx-auto px-4 py-8">
<!-- 头部标题 -->
<div class="text-center mb-12">
<h1 class="text-4xl md:text-5xl font-bold mb-4">AI视频人物替换工具</h1>
<p class="text-xl text-gray-300 max-w-2xl mx-auto">
上传您的照片和视频,AI将照片中的人物完美融合到视频中,同步动作和口型
</p>
</div>
<!-- 进度条 -->
<div class="max-w-2xl mx-auto mb-10">
<div class="flex justify-between mb-2">
<span class="text-sm font-medium">当前进度</span>
<span class="text-sm font-medium">65%</span>
</div>
<div class="progress-bar">
<div class="progress-fill"></div>
</div>
</div>
<!-- 主要内容区域 -->
<div class="flex flex-col lg:flex-row gap-8">
<!-- 上传区域 -->
<div class="lg:w-1/2 flex flex-col gap-6">
<div class="result-container rounded-xl p-6 mb-6">
<h2 class="text-xl font-bold mb-4 flex items-center">
<i class="fas fa-video mr-2 text-purple-400"></i>AI换脸效果预览
</h2>
<div class="bg-black rounded-lg overflow-hidden relative h-72 md:h-80 flex items-center justify-center">
<div class="relative">
<video class="w-full h-64 rounded-lg" controls poster="https://images.unsplash.com/photo-1579546929662-711aa81148cf?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80">
<source src="#" type="video/mp4">
您的浏览器不支持视频标签。
</video>
<div class="absolute inset-0 flex items-center justify-center">
<div class="bg-black bg-opacity-50 rounded-full p-3">
<i class="fas fa-play-circle text-white text-5xl"></i>
</div>
</div>
</div>
<div class="absolute bottom-4 right-4 bg-black bg-opacity-70 px-3 py-1 rounded-full text-sm">
<span class="ai-badge px-2 py-1 rounded-md text-xs">AI合成中</span>
</div>
</div>
<div class="mt-4">
<button class="w-full py-3 bg-gradient-to-r from-purple-600 to-indigo-600 rounded-lg font-medium text-white hover:from-purple-700 hover:to-indigo-700 transition flex items-center justify-center">
<i class="fas fa-download mr-2"></i>下载最终视频
</button>
</div>
</div>
<div class="bg-dark rounded-xl p-6">
<h2 class="text-xl font-bold mb-4 flex items-center">
<i class="fas fa-sliders-h mr-2 text-purple-400"></i>高级设置
</h2>
<div class="space-y-4">
<div>
<label class="block mb-2 text-gray-300">融合精度</label>
<div class="flex space-x-2">
<button class="flex-1 py-2 bg-gray-800 rounded-md">普通</button>
<button class="flex-1 py-2 bg-primary rounded-md font-medium">高级</button>
<button class="flex-1 py-2 bg-gray-800 rounded-md">专业</button>
</div>
</div>
<div>
<label class="block mb-2 text-gray-300">口型同步强度</label>
<input type="range" min="0" max="100" value="85" class="w-full accent-purple-600">
</div>
<div>
<label class="block mb-2 text-gray-300">视频分辨率</label>
<select class="w-full bg-gray-800 border border-gray-700 rounded-md p-2 focus:outline-none focus:ring-2 focus:ring-purple-500">
<option>720p (推荐)</option>
<option>1080p</option>
<option>4K (专业版)</option>
</select>
</div>
<div class="pt-2">
<button class="w-full py-3 bg-gradient-to-r from-gray-700 to-gray-800 rounded-lg font-medium hover:from-gray-600 hover:to-gray-700 transition">
<i class="fas fa-magic mr-2"></i>应用高级设置
</button>
</div>
</div>
</div>
</div>
<!-- 上传区域 -->
<div class="lg:w-1/2">
<div class="bg-dark rounded-xl p-6 mb-8">
<h2 class="text-xl font-bold mb-6 flex items-center">
<i class="fas fa-cloud-upload-alt mr-2 text-purple-400"></i>上传素材
</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
<div class="upload-box rounded-xl p-5 flex flex-col items-center justify-center text-center cursor-pointer" id="image-upload">
<i class="fas fa-image text-4xl mb-3 text-purple-400"></i>
<h3 class="font-medium mb-2">上传人物照片</h3>
<p class="text-gray-400 text-sm mb-3">支持JPG/PNG格式</p>
<button class="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-md transition mt-2">
选择文件
</button>
<input type="file" class="hidden" accept="image/*">
</div>
<div class="upload-box rounded-xl p-5 flex flex-col items-center justify-center text-center cursor-pointer" id="video-upload">
<i class="fas fa-video text-4xl mb-3 text-purple-400"></i>
<h3 class="font-medium mb-2">上传目标视频</h3>
<p class="text-gray-400 text-sm mb-3">支持MP4/MOV格式</p>
<button class="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-md transition mt-2">
选择文件
</button>
<input type="file" class="hidden" accept="video/*">
</div>
</div>
<div class="text-center">
<button id="start-btn" class="px-8 py-4 bg-gradient-to-r from-purple-600 to-indigo-600 rounded-lg font-bold text-xl hover:from-purple-700 hover:to-indigo-700 transition transform hover:scale-105 duration-300">
<i class="fas fa-bolt mr-2"></i>开始AI换脸处理
</button>
<p class="text-gray-400 mt-3 text-sm">处理时间取决于视频长度,请耐心等待</p>
</div>
</div>
<!-- 预览区域 -->
<div class="bg-dark rounded-xl p-6">
<h2 class="text-xl font-bold mb-4 flex items-center">
<i class="fas fa-images mr-2 text-purple-400"></i>素材预览
</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<h3 class="text-gray-300 mb-2">人物照片</h3>
<div class="bg-gray-900 rounded-lg p-3">
<div class="bg-gray-800 w-full h-48 rounded flex items-center justify-center">
<img src="https://images.unsplash.com/photo-1438761681033-6461ffad8d80?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80" alt="预览图片" class="preview-image">
</div>
<div class="mt-2 text-sm text-gray-400">已上传: portrait.jpg</div>
</div>
</div>
<div>
<h3 class="text-gray-300 mb-2">目标视频</h3>
<div class="bg-gray-900 rounded-lg p-3">
<div class="bg-gray-800 w-full h-48 rounded flex items-center justify-center">
<img src="https://images.unsplash.com/photo-1616469829471-9ed856e7e41d?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80" alt="预览视频" class="preview-image">
</div>
<div class="mt-2 text-sm text-gray-400">已上传: dance.mp4 (00:30)</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 特性介绍 -->
<div class="mt-16">
<h2 class="text-3xl font-bold text-center mb-12">强大的AI视频处理功能</h2>
<div class="features-grid">
<div class="feature-card">
<div class="w-12 h-12 rounded-full bg-purple-500 flex items-center justify-center mb-4">
<i class="fas fa-lips text-white text-xl"></i>
</div>
<h3 class="text-lg font-bold mb-2">精准口型同步</h3>
<p class="text-gray-300">AI算法智能分析语音内容,生成完全匹配的口型动作</p>
</div>
<div class="feature-card">
<div class="w-12 h-12 rounded-full bg-indigo-500 flex items-center justify-center mb-4">
<i class="fas fa-motion text-white text-xl"></i>
</div>
<h3 class="text-lg font-bold mb-2">动作捕捉</h3>
<p class="text-gray-300">精确追踪原始视频中的动作轨迹,实现自然的肢体动作</p>
</div>
<div class="feature-card">
<div class="w-12 h-12 rounded-full bg-pink-500 flex items-center justify-center mb-4">
<i class="fas fa-lightbulb text-white text-xl"></i>
</div>
<h3 class="text-lg font-bold mb-2">智能光影匹配</h3>
<p class="text-gray-300">自动分析光线环境,让替换后的人物与视频环境完美融合</p>
</div>
<div class="feature-card">
<div class="w-12 h-12 rounded-full bg-blue-500 flex items-center justify-center mb-4">
<i class="fas fa-volume-up text-white text-xl"></i>
</div>
<h3 class="text-lg font-bold mb-2">语音克隆</h3>
<p class="text-gray-300">保留原视频语音或克隆上传照片人物的声音特征</p>
</div>
</div>
</div>
<!-- 使用说明 -->
<div class="mt-20">
<div class="bg-dark rounded-xl p-8">
<h2 class="text-3xl font-bold mb-8 text-center">简单三步完成替换</h2>
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="text-center mb-8 md:mb-0 md:w-1/3 px-4">
<div class="w-16 h-16 rounded-full bg-purple-600 flex items-center justify-center mx-auto mb-4">
<span class="text-white text-2xl font-bold">1</span>
</div>
<h3 class="text-xl font-bold mb-3">上传照片和视频</h3>
<p class="text-gray-300">上传清晰的人物照片和目标动作视频</p>
</div>
<div class="text-center mb-8 md:mb-0 md:w-1/3 px-4">
<div class="w-16 h-16 rounded-full bg-purple-600 flex items-center justify-center mx-auto mb-4">
<span class="text-white text-2xl font-bold">2</span>
</div>
<h3 class="text-xl font-bold mb-3">AI智能处理</h3>
<p class="text-gray-300">算法自动分析并生成替换后的视频</p>
</div>
<div class="text-center md:w-1/3 px-4">
<div class="w-16 h-16 rounded-full bg-purple-600 flex items-center justify-center mx-auto mb-4">
<span class="text-white text-2xl font-bold">3</span>
</div>
<h3 class="text-xl font-bold mb-3">下载分享成果</h3>
<p class="text-gray-300">获取高质量视频,与朋友分享精彩时刻</p>
</div>
</div>
</div>
</div>
</div>
<!-- 底部 -->
<footer class="bg-gray-900 border-t border-gray-800 py-8 mt-16">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-6 md:mb-0">
<div class="flex items-center">
<i class="fas fa-film text-2xl text-purple-500 mr-2"></i>
<span class="text-xl font-bold">AI视频换脸助手</span>
</div>
<p class="text-gray-400 mt-2">让每个人都能成为视频主角</p>
</div>
<div class="flex space-x-6">
<a href="#" class="text-gray-400 hover:text-white transition">
<i class="fab fa-weibo text-xl"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition">
<i class="fab fa-weixin text-xl"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition">
<i class="fab fa-github text-xl"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition">
<i class="fab fa-youtube text-xl"></i>
</a>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400 text-sm">
<p>© 2023 AI视频换脸助手 | 人工智能创意工具</p>
</div>
</div>
</footer>
<script>
// 模拟上传功能
document.getElementById('image-upload').addEventListener('click', function() {
this.querySelector('input[type="file"]').click();
});
document.getElementById('video-upload').addEventListener('click', function() {
this.querySelector('input[type="file"]').click();
});
// 开始处理按钮
document.getElementById('start-btn').addEventListener('click', function() {
this.innerHTML = '<i class="fas fa-spinner animate-spin mr-2"></i>AI处理中...';
this.classList.remove('hover:from-purple-700', 'hover:to-indigo-700', 'hover:scale-105');
this.classList.add('opacity-75', 'cursor-not-allowed');
// 模拟处理过程
setTimeout(() => {
alert('处理完成!您现在可以下载最终视频了。');
this.innerHTML = '<i class="fas fa-check-circle mr-2"></i>处理完成';
}, 3000);
});
// 拖拽区域高亮效果
const uploadBoxes = document.querySelectorAll('.upload-box');
uploadBoxes.forEach(box => {
box.addEventListener('dragover', function(e) {
e.preventDefault();
this.classList.add('drag-over');
});
box.addEventListener('dragleave', function() {
this.classList.remove('drag-over');
});
box.addEventListener('drop', function(e) {
e.preventDefault();
this.classList.remove('drag-over');
alert('文件已上传!');
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Happycolla/open" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |