From 8b2c41e5a5239fc43f3684fc8bc8b7510305cf4f Mon Sep 17 00:00:00 2001 From: Xinfan Chen <2024111082@stu.hit.edu.cn> Date: Tue, 31 Mar 2026 12:00:14 +0800 Subject: [PATCH] Set the log level to INFO --- README.md | 264 ++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 232 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 32c48ab..02c1f8e 100644 --- a/README.md +++ b/README.md @@ -1,53 +1,253 @@ -<h2 align="center"> <a href="https://github.com/HITsz-TMG/FilmAgent/">FilmAgent: Automating Virtual Film Production via Multi-Agent Collaboration</a></h2> -<h5 align="center"> If you appreciate our project, please consider giving us a star ⭐ on GitHub to stay updated with the latest developments. </h2> -<h4 align="center"> - -[](https://filmagent.github.io/) -[](https://arxiv.org/abs/2405.11273) +<p align="center"> + <img src="aigc-director-pics/banner.png" width="100%" /> +</p> +<h2 align="center"> + AIGC-Claw: AI 创意视频生成员工 +</h2> + +<h4 align="center"> + <img src="https://img.shields.io/badge/Version-1.0.0-blue.svg" alt="Version"> + <a href="https://github.com/HITsz-TMG/AIGC-Claw/blob/main/LICENSE"> + <img src="https://img.shields.io/github/license/HITsz-TMG/AIGC-Claw?style=flat-square" alt="License"> + </a> + <a href="https://github.com/HITsz-TMG/AIGC-Claw/stargazers"> + <img src="https://img.shields.io/github/stars/HITsz-TMG/AIGC-Claw?style=flat-square&logo=github" alt="Stars"> + </a> + <a href="https://github.com/HITsz-TMG/AIGC-Claw/fork"> + <img src="https://img.shields.io/github/forks/HITsz-TMG/AIGC-Claw?style=flat-square&logo=github" alt="Forks"> + </a> + <img src="https://img.shields.io/badge/Python-3.9+-purple.svg" alt="Python"> + <a href="#openclaw-integration"> + <img src="https://img.shields.io/badge/OpenClaw-Compatible-ff4444?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEyIDJDNi40OCAyIDIgNi40OCAyIDEyczQuNDggMTAgMTAgMTAgMTAtNC40OCAxMC0xMFMxNy41MiAyIDEyIDJ6IiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==" alt="OpenClaw Compatible"> + </a> </h4> -## 🎨 Framework +<p align="center"> + <b><i><font size="5">直接与 <a href="https://github.com/openclaw/openclaw">OpenClaw</a> 对话:"生成 X 的视频" → 搞定。</font></i></b> +</p> -Following the traditional film studio workflow, we divide the whole virtual film production process into three sequential stages: planning, scriptwriting and cinematography, and apply the **Critique-Correct-Verify**、**Debate-Judge** collaboration strategies. After these stages, each line in the script is specified with the positions of the actors, their actions, their dialogue, and the chosen camera shots. +<div align="center"> -<div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/framework.png" height="100%" width="75%"/></div> +📺 [**Bilibili**](https://www.youtube.com/@imryanxu) ▶️ [**YouTube**](https://www.youtube.com/@imryanxu) 📖 [**集成指南**](https://github.com/HITsz-TMG/AIGC-Claw?tab=readme-ov-file#%E6%96%B9%E5%BC%8F%E4%BA%8Copenclaw-%E8%87%AA%E5%8A%A8%E9%85%8D%E7%BD%AE) 🦀 [**ClawHub**](https://clawhub.ai/hit-cxf/aigc-director) -## 🌟 How to use FilmAgent +<a href="https://trendshift.io/repositories/12871" target="_blank"><img src="https://trendshift.io/api/badge/repositories/12871" alt="HITsz-TMG%2FFilmAgent | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a> -1. Install Package -```Shell -conda create -n filmagent python==3.9.18 -conda activate filmagent -pip install -r env.txt -``` +</div> -2. Create `Script` and `Logs` folders in the Filmagent directory, then replace the absolute pathname '/path/to/' with your specific path and modify the `topic` in the `main.py`. Run the following command to get the movie script created by the agents collaboratively: + +## 💥 News + +- `2026/3/27`: 🚀 AIGC-Claw 正式发布,支持视频生成全流程 + + + + +## 📖 项目介绍 + +AIGC-Claw 是一个 AI 创意视频生成系统。你只需要输入一个创意主题,系统会将其转化为可交付的视频作品。 + +流程覆盖完整影视制作链路:剧本创作、角色设计、分镜规划、参考图生成、视频生成、后期剪辑。每个阶段都会产出可视化结果并支持确认后继续,兼顾自动化效率与可控性。 + + +## 📺 AIGC-Claw 示例 + +<details> +<summary><b>Web 前端界面</b></summary> +<div align="center"> + +| | | +|:---:|:---:| +|  |  | +|  |  | +|  |  | + +</div> +</details> + +<details> +<summary><b>微信交互</b></summary> +<div align="center"> + +| | | | | +|:---:|:---:|:---:|:---:| +|  |  |  |  | + +</div> +</details> + +<details> +<summary><b>飞书交互</b></summary> +<div align="center"> + +| | | | | +|:---:|:---:|:---:|:---:| +|  |  |  |  | + +</div> +</details> + +## ✨ 功能特性 + +| 阶段 | 功能 | 描述 | +|:---:|---|---| +| 1 | 🎭 **剧本生成** | 输入创意自动生成结构化剧本,支持长视频和微电影模式 | +| 2 | 👤 **角色设计** | AI 生成角色设定图(四视图)和场景背景图 | +| 3 | 🎬 **分镜设计** | 智能拆分镜头脚本,设计镜头语言 | +| 4 | 🖼️ **参考图生成** | 为每个镜头生成高精度参考图 | +| 5 | 🎥 **视频生成** | 图生视频 / 文生视频 | +| 6 | ✂️ **后期剪辑** | 自动拼接视频片段,添加转场效果 | + +--- + +## 🚀 快速开始 + +### 方式一:手动安装 + ```bash -cd /path/to/FilmAgent -conda activate filmagent -python main.py +# 1. 克隆项目 +git clone https://github.com/HITsz-TMG/AIGC-Claw.git +cd AIGC-Claw + +# 2. 配置并启动后端 +cd aigc-director/aigc-claw/backend + +# 创建虚拟环境并安装依赖 +python -m venv venv +source venv/bin/activate # Linux/Mac +pip install -r requirements.txt + +# 配置环境变量 +cp .env.example .env +# 编辑 .env 填入 API Key + +# 启动后端 +python api_server.py +# 服务运行在 http://localhost:8000 ``` -3. We use [ChatTTS](https://github.com/2noise/ChatTTS) to provide voice acting for the characters in the script. You need to download the [ChatTTS](https://github.com/2noise/ChatTTS) repository to the `TTS` directory. Then replace the absolute pathname '/path/to/' with your specific path in the `tts_main.py`. Run the following command to deploy the text-to-speech service: ```bash -cd /path/to/TTS -conda create -n tts python==3.9.18 -conda activate tts -pip install -r tts_env.txt -python tts_main.py +# 3. 配置并启动前端(新终端) +cd aigc-director/aigc-claw/frontend +npm install +npm run build +npm start +# 访问 http://localhost:3000 ``` -4. Modify the `Script_path`, `actos_path`, `Audio_path` and `url` in the `GenerateAudio.py`. Run the following command to get the audio files: +### 方式二:OpenClaw 自动配置 + +向 OpenClaw 发送消息: + +``` +帮我克隆git仓库:https://github.com/HITsz-TMG/AIGC-Claw.git +然后把AIGC-Claw中的aigc-director文件夹递归复制到.openclaw/workspace/skills目录下,用作AIGC相关的skill +``` + +使用时建议指明 "使用 aigc-director": + +``` +用aigc-director来生成一个视频,内容是"一条狗的使命" +``` + +### 方式三:通过 ClawHub 安装 + +请确保本地安装了clawhub-cli + +打开终端,输入命令,所有询问均选择yes + ```bash -cd /path/to/FilmAgent -conda activate filmagent -python GenerateAudio.py +clawhub install aigc-director ``` -5. We now have the `script.json`, `actors_profile.json`, and a series of `.wav` audio files. Next, we need to execute the script in Unity. The recommended version of the Unity editor is **Unity 2022.3.14f1c1**. You need to download the [Unity project file](https://huggingface.co/datasets/wjfhit/filmagent_unity/tree/main) we provide. After decompression, open `TheBigBang\Assets\TheBigBang\Manyrooms.unity` with Unity. Then Replace all the absolute pathnames '/path/to/' with your specific path in `TheBigBang\Assets\Scirpts\StartVideo.cs` and `TheBigBang\Assets\Scirpts\ScriptExecute.cs`. Press **ctrl+R** in the unity interface to recompile, Click **Play** to enter Game mode, then press **E** to start executing the script (sometimes the audio files load slowly, so you may need to play it 2 or 3 times before it can run normally). +安装完成后,ClawHub 会将 `aigc-director` 复制到 `workspace/skills`(或指定的 skills 目录)。 -<div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/unity_1.png" height="100%" width="50%"/><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/unity_2.png" height="100%" width="50%"/></div> +之后可以参考方式一手动安装自行构建项目并运行,也可以使用OpenClaw完成后续项目构建。 + +在第一次使用 `aigc-director` 时,如果没有手动构建项目,OpenClaw会自动构建前后端并运行,无需手动初始化(构建项目需要配置环境和编译,请耐心等待)。 +--- + +## 📁 项目结构 + +``` +AIGC-Claw/ +├── aigc-director/ # 🎯 OpenClaw Agent Skill +│ ├── SKILL.md # Agent 工作流规则定义 +│ ├── CLAUDE.md # Claude Code 开发指引 +│ ├── README.md # Skill 项目说明 +│ ├── references/ # API 参考文档 +│ │ ├── init_project/ # 项目初始化指南 +│ │ ├── run_project/ # 服务启动指南 +│ │ ├── workflow/ # 六阶段工作流 API +│ │ ├── sandbox/ # 临时工作台 API +│ │ └── send_message/ # 消息推送集成 +│ └── aigc-claw/ # 💻 实际代码项目 +│ ├── backend/ # Python FastAPI 后端 +│ │ ├── api_server.py # API 入口 +│ │ ├── core/ # 核心模块 +│ │ │ ├── orchestrator.py # 工作流引擎 +│ │ │ └── agents/ # 6 个阶段 Agent +│ │ └── tool/ # 外部 API 客户端 +│ └── frontend/ # Next.js 前端 +├── FilmAgent/ # 🎬 原FilmAgent项目 +└── README.md # 主 README +``` + +--- + +## 🔧 配置说明 + +### 环境要求 + +- **Python**: 3.9+ +- **Node.js**: 18+ +- **npm**: 9+ + +### 后端环境变量 + +在 `aigc-claw/backend/.env` 中配置: + +```bash +# LLM 配置 +LLM_MODEL=qwen3.5-plus +VLM_MODEL=qwen-vl-plus + +# 图像生成 +IMAGE_T2I_MODEL=doubao-seedream-5-0-260128 +IMAGE_IT2I_MODEL=doubao-seedream-5-0-260128 + +# 视频生成 +VIDEO_MODEL=wan2.6-i2v-flash +VIDEO_RATIO=16:9 + +# API Keys +DASHSCOPE_API_KEY=your_key +ARK_API_KEY=your_key +DEEPSEEK_API_KEY=your_key +``` + +### 可用模型 + +| 类型 | 模型 | +|:---:|:---| +| **LLM** | qwen3.5-plus, deepseek-chat, gpt-4o, gemini-2.5-flash | +| **VLM** | qwen-vl-plus, gemini-2.5-flash-image | +| **文生图** | doubao-seedream-5-0, jimeng_t2i_v40, wan2.6-t2i | +| **图生图** | doubao-seedream-5-0, jimeng_t2i_v40, wan2.6-image | +| **视频生成** | wan2.6-i2v-flash, kling-v3, jimeng_ti2v_v30_pro | + + +## 📚 系列工作 + +| 框架图 | 论文信息 | +|:---:|---| +| <img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/framework.png?raw=true" width="420" alt="FilmAgent framework"/> | **FilmAgent: Automating Virtual Film Production Through a Multi-Agent Collaborative Framework**<br>Authors: Xu, Zhenran; Wang, Jifang; Wang, Longyue; Li, Zhouyi; Shi, Senbao; Hu, Baotian; Zhang, Min<br>[[Paper](https://doi.org/10.1145/3681758.3698014)] [[GitHub](https://github.com/HITsz-TMG/AIGC-Claw/blob/main/FilmAgent.md)] | +| <img src="https://github.com/HITsz-TMG/Anim-Director/blob/main/Anim-Director/assets/visualeg.png" width="420" alt="Anim-Director result"/> | **Anim-Director: A Large Multimodal Model Powered Agent for Controllable Animation Video Generation**<br>Authors: Li, Yunxin; Shi, Haoyuan; Hu, Baotian; Wang, Longyue; Zhu, Jiashun; Xu, Jinyi; Zhao, Zhen; Zhang, Min<br>[[Paper](https://doi.org/10.1145/3680528.3687688)] [[GitHub](https://github.com/HITsz-TMG/Anim-Director/tree/main/Anim-Director)] | +| <img src="https://raw.githubusercontent.com/HITsz-TMG/Anim-Director/main/AniMaker/assets/pipeline.png" width="420" alt="AniMaker pipeline"/> | **AniMaker: Multi-Agent Animated Storytelling with MCTS-Driven Clip Generation**<br>Authors: Shi, Haoyuan; Li, Yunxin; Chen, Xinyu; Wang, Longyue; Hu, Baotian; Zhang, Min<br>[[Paper](https://doi.org/10.1145/3757377.3764009)] [[GitHub](https://github.com/HITsz-TMG/Anim-Director/tree/main/AniMaker)] | + +<p align="center"> + <sub>Built with 🦞 by the HITsz-TMG team</sub> +</p> -- Gitblit v1.8.0