diff --git a/Docs/DEPLOY_MANUAL.md b/Docs/DEPLOY_MANUAL.md index 097ae1e..1799642 100644 --- a/Docs/DEPLOY_MANUAL.md +++ b/Docs/DEPLOY_MANUAL.md @@ -163,7 +163,7 @@ npm install ```bash cd /home/rongye/ProgramFiles/ViGent/backend source venv/bin/activate -uvicorn app.main:app --host 0.0.0.0 --port 8000 +uvicorn app.main:app --host 0.0.0.0 --port 8006 ``` ### 启动前端 (新开终端) @@ -177,8 +177,8 @@ npm run dev -- --host 0.0.0.0 ## 步骤 10: 验证 -1. 访问 http://服务器IP:3000 查看前端 -2. 访问 http://服务器IP:8000/docs 查看 API 文档 +1. 访问 http://服务器IP:3002 查看前端 +2. 访问 http://服务器IP:8006/docs 查看 API 文档 3. 上传测试视频,生成口播视频 --- @@ -198,7 +198,7 @@ Type=simple User=rongye WorkingDirectory=/home/rongye/ProgramFiles/ViGent/backend Environment="PATH=/home/rongye/ProgramFiles/ViGent/backend/venv/bin" -ExecStart=/home/rongye/ProgramFiles/ViGent/backend/venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000 +ExecStart=/home/rongye/ProgramFiles/ViGent/backend/venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8006 Restart=always [Install] @@ -248,8 +248,8 @@ python3 -c "import torch; print(torch.cuda.is_available())" ```bash # 查看端口占用 -sudo lsof -i :8000 -sudo lsof -i :3000 +sudo lsof -i :8006 +sudo lsof -i :3002 ``` ### 查看日志 diff --git a/Docs/README.md b/Docs/README.md deleted file mode 100644 index eda3931..0000000 --- a/Docs/README.md +++ /dev/null @@ -1,72 +0,0 @@ -# ViGent - 数字人口播视频生成系统 - -基于 MuseTalk + EdgeTTS 的开源数字人口播视频生成系统 - -## 功能 - -- 📹 上传静态人物视频,生成口播视频(唇形同步) -- 🎙️ TTS 配音 / 声音克隆 -- 💬 自动生成字幕 -- 📱 一键发布到多个社交平台 - -## 技术栈 - -| 模块 | 技术 | -|------|------| -| 前端 | Next.js 14 | -| 后端 | FastAPI + Celery | -| 唇形同步 | MuseTalk (GPU1) | -| TTS | EdgeTTS | -| 视频处理 | FFmpeg | -| 自动发布 | Playwright | - -## 项目结构 - -``` -/home/rongye/ProgramFiles/ViGent/ -├── backend/ # FastAPI 后端 -├── frontend/ # Next.js 前端 -├── models/ # AI 模型 (MuseTalk) -└── deploy.sh # 一键部署脚本 -``` - -## 服务器部署 (Dell R730) - -```bash -# 进入部署目录 -cd /home/rongye/ProgramFiles/ViGent - -# 一键部署 -chmod +x deploy.sh -./deploy.sh -``` - -## 启动服务 - -```bash -# 后端 API (端口 8000) -cd /home/rongye/ProgramFiles/ViGent/backend -source venv/bin/activate -uvicorn app.main:app --host 0.0.0.0 --port 8000 - -# 前端 UI (端口 3000) -cd /home/rongye/ProgramFiles/ViGent/frontend -npm run dev -``` - -## GPU 配置 - -| GPU | 用途 | -|-----|------| -| GPU 0 (RTX 3090 24GB) | 其他服务 | -| GPU 1 (RTX 3090 24GB) | MuseTalk 唇形同步 | - -## 访问地址 - -- 视频生成: http://服务器IP:3000 -- 发布管理: http://服务器IP:3000/publish -- API 文档: http://服务器IP:8000/docs - -## License - -MIT diff --git a/README.md b/README.md index 34ad843..240a3f1 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ cd models/MuseTalk ```bash # 终端 1: 后端 (端口 8000) cd backend && source venv/bin/activate -uvicorn app.main:app --host 0.0.0.0 --port 8000 +uvicorn app.main:app --host 0.0.0.0 --port 8006 # 终端 2: 前端 (端口 3000) cd frontend @@ -119,9 +119,9 @@ npm run dev | 服务 | 地址 | |------|------| -| 视频生成 | http://服务器IP:3000 | -| 发布管理 | http://服务器IP:3000/publish | -| API 文档 | http://服务器IP:8000/docs | +| 视频生成 | http://服务器IP:3002 | +| 发布管理 | http://服务器IP:3002/publish | +| API 文档 | http://服务器IP:8006/docs | --- diff --git a/frontend/next.config.ts b/frontend/next.config.ts index e1e7511..507b0f9 100644 --- a/frontend/next.config.ts +++ b/frontend/next.config.ts @@ -6,7 +6,7 @@ const nextConfig: NextConfig = { return [ { source: '/api/:path*', - destination: 'http://127.0.0.1:8000/api/:path*', + destination: 'http://127.0.0.1:8006/api/:path*', }, ]; }, diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 08ebeef..e19ed4a 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -3,7 +3,7 @@ import { useState, useEffect } from "react"; -const API_BASE = "http://127.0.0.1:8000"; +const API_BASE = "http://127.0.0.1:8006"; // 类型定义 interface Material { diff --git a/frontend/src/app/publish/page.tsx b/frontend/src/app/publish/page.tsx index dbcafcb..f551090 100644 --- a/frontend/src/app/publish/page.tsx +++ b/frontend/src/app/publish/page.tsx @@ -3,7 +3,7 @@ import { useState, useEffect } from "react"; import Link from "next/link"; -const API_BASE = "http://127.0.0.1:8000"; +const API_BASE = "http://127.0.0.1:8006"; interface Account { platform: string; @@ -113,7 +113,7 @@ export default function PublishPage() { const handleLogin = async (platform: string) => { alert( - `登录功能需要在服务端执行。\n\n请在终端运行:\ncurl -X POST http://localhost:8000/api/publish/login/${platform}` + `登录功能需要在服务端执行。\n\n请在终端运行:\ncurl -X POST http://localhost:8006/api/publish/login/${platform}` ); }; @@ -178,8 +178,8 @@ export default function PublishPage() {