| | |
| | | <p align="center"> |
| | | <img src="pics/cover_page.jpg" width="300" style="margin-bottom: 0.2;"/> |
| | | <p> |
| | | |
| | | <h2 align="center"> <a href="https://github.com/HITsz-TMG/FilmAgent">FilmAgent: A Multi-Agent Framework for End-to-End Film Automation in Virtual 3D Spaces</a></h2> |
| | | <h5 align="center"> If you like our project, please consider giving us a star โญ on GitHub to stay updated with the latest developments. </h2> |
| | | <!-- <h5 align="center"> If you like 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/) |
| | | |
| | | <div align="center"> |
| | | <img src="https://img.shields.io/badge/Version-1.0.0-blue.svg" alt="Version"> |
| | | <img src="https://img.shields.io/badge/License-Apache%202.0-green.svg" alt="License"> |
| | | <img src="https://img.shields.io/github/stars/HITsz-TMG/FilmAgent?color=yellow" alt="Stars"> |
| | | <img src="https://img.shields.io/github/issues/HITsz-TMG/FilmAgent?color=red" alt="Issues"> |
| | | <img src="https://img.shields.io/badge/python-3.8-purple.svg" alt="Python"> |
| | | |
| | | <!-- <img src="https://img.shields.io/github/stars/AIDC-AI/Marco-o1?color=yellow" alt="Stars"> --> |
| | | |
| | | <!-- [](https://filmagent.github.io/) |
| | | [](https://arxiv.org/abs/2501.12909) |
| | | [](https://www.youtube.com/watch?v=hTI-0777iHU) |
| | |  --> |
| | | |
| | | </h4> |
| | | |
| | | <div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/intro.png" height="100%" width="85%"/></div> |
| | | <div align="center"> |
| | | |
| | | <!-- **Affiliations:** --> |
| | | |
| | | _**Zhenran Xu, Longyue Wang, Jifang Wang, Zhouyi Li, Senbao Shi, Xue Yang, Yiyu Wang, Baotian Hu, Jun Yu, Min Zhang**_ |
| | | |
| | | ๐ฏ [**Project Page**](https://filmagent.github.io) :octocat: [**Code**](https://github.com/HITsz-TMG/FilmAgent) ๐ [**Paper**](https://arxiv.org/abs/2501.12909) ๐งโ๐ป [**Slides**](https://filmagent.github.io/static/SA24_FilmAgent.pdf) ๐ฝ๏ธ [**Video**](https://www.youtube.com/watch?v=hTI-0777iHU) |
| | | |
| | | </div> |
| | | |
| | | # |
| | | |
| | | **FilmAgent** is a multi-agent collaborative system for end-to-end film automation in 3D virtual spaces. |
| | | FilmAgent simulates key crew rolesโdirectors, screenwriters, actors, and cinematographers, and integrates efficient human workflows within a sandbox environment. |
| | | |
| | | <div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/intro.png" height="100%" width="85%"/></div> |
| | | |
| | | ## ๐จ Framework |
| | | ## ๐ Framework |
| | | |
| | | Following the traditional film studio workflow, we divide the whole film automation process into three sequential stages: idea development, 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. |
| | | |
| | |
| | | python GenerateAudio.py |
| | | ``` |
| | | |
| | | 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). |
| | | 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://www.dropbox.com/scl/fi/atxhxnqppeofmt471dxr5/TheBigBang.zip) 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). |
| | | |
| | | <div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/unity_1.png" height="100%" width="50%"/><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/unity_2.png" height="100%" width="50%"/></div> |
| | | |
| | |
| | | |
| | | ## ๐ Case Study |
| | | |
| | | ### What does Multi-Agent Collaboratuion do? |
| | | ### What does Multi-Agent Collaboration do? |
| | | The following table records some comparisons of the scripts and camera settings before (left) and after (right) multi-agent collaboration, with excerpts from their discussion process. |
| | | |
| | | <div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/cases.png" height="100%" width="70%"/></div> |
| | |
| | | |
| | | ### Comparison with Sora |
| | | |
| | | <div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/sora.png" height="100%" width="100%"/></div> |
| | | <div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/sora.png" height="100%" width="70%"/></div> |
| | | |
| | | While Sora shows **great adaptability**, it struggles with consistency and narrative delivery. In contrast, FilmAgent requires pre-built 3D spaces, but it produces **coherent, physics-compliant** videos |
| | | |
| | | |
| | | https://github.com/user-attachments/assets/65bb4c12-cba0-4ee9-a673-63ea5103fd76 |
| | | |
| | | |
| | | |
| | | While Sora shows **great adaptability** to diverse locations, characters and shots, it struggles with consistency and narrative delivery. In contrast, FilmAgent requires pre-built 3D spaces, but it produces **coherent, physics-compliant** videos |
| | | with strong **storytelling capabilities**. |
| | | |
| | | |
| | | ## Citation |
| | | ## ๐ Citation |
| | | |
| | | If you find FilmAgent useful for your research and applications, please cite using this BibTeX: |
| | | ```bibtex |