Spaces:
Running
Running
| # π»π§ GhostPackDemo (BETA) β Next-Gen AI Video Generator | |
| **Beta Demo β Try experimental AI video creation, directly on your GPU!** | |
| [](https://python.org) | |
| [](LICENSE) | |
| [](https://huggingface.co/spaces/ghostai1/GhostPackDemo) | |
| <br> | |
| <div align="center"> | |
| <img src="https://cdn-uploads.huggingface.co/production/uploads/6421b1c68adc8881b974a89d/2RH49llUgKsmWY7Hu8yBD.gif" | |
| alt="GhostPack Animated Banner" | |
| style="width: 920px; height: 260px; max-width: 100%; border-radius: 18px; box-shadow: 0 0 48px #00ffcc; margin-bottom: 36px; display: block;"> | |
| </div> | |
| --- | |
| ## π What is GhostPackDemo? (Beta) | |
| **GhostPackDemo** is an open-source AI video generator for your local GPU. This BETA combines **HunyuanVideo** and **FramePack** into a single Python pipeline + live Gradio UI. | |
| - π¦Ύ **Fast:** 40% faster with Teacache, Sage-Attention, CUDA tweaks. | |
| - π§ **Efficient:** 50% less VRAM (context packing, tcmalloc, memory cache). | |
| - π» **Laptop-Ready:** 6GB VRAM & 8GB RAM minimum (GTX 1650/RTX 3050+). | |
| - π **Runs Local:** All processing on your own hardware β no cloud! | |
| - ποΈ **Live Preview:** See every frame build in real time, full workflow control. | |
| > **Beta Notice:** Expect rough edges, limited samplers, and edge-case bugs! This demo build prioritizes clarity and reproducibility for AI devs. | |
| --- | |
| ## β¨ Features (Beta) | |
| - **Veo 3-Level AI:** Next-frame prediction for ultra-realistic video motion. | |
| - **Phantom Speed:** Teacache + Sage-Attention, 12β15s/frame (RTX 3060). | |
| - **Config Control:** Batch size, frame window, prompt, CRF, see everything live. | |
| - **Open Source:** Apache 2.0 β fork, remix, contribute! | |
| - **Export:** High quality MP4 (CRF 0β100). | |
| --- | |
| ## π§ Math Sorcery & Hardware | |
| - <span style="color:#00ffa2">**Speed:**</span> Teacache ~40% (`T_total β 0.6 Γ T_base`), Sage-Attention +10%, CUDA tweaks β15% latency | |
| - <span style="color:#a200ff">**Memory:**</span> Context packing β50% VRAM, tcmalloc β20% overhead, memory cache β25% | |
| - <span style="color:#00c3ff">**Compute:**</span> Dynamic batching +50% throughput | |
| - <span style="color:#ffff00">**Efficiency:**</span> Power save β30% idle, Thread tuning +15% CPU | |
| - <span style="color:#ff5e57">**VRAM Needs:**</span> | |
| - GTX 1650 (6GB): 18β25s/frame | |
| - RTX 3050 (8GB): 15β20s/frame | |
| - RTX 3060 (12GB): 10β15s/frame | |
| - RTX 4090 (24GB): 1.5β2.5s/frame | |
| **Minimum:** NVIDIA GPU (6GB+), 8GB RAM, 30GB+ disk, Python 3.10+, CUDA 12.6+ | |
| **Recommended:** RTX 3060 or better | |
| --- | |
| ## π .env Setup (IMPORTANT) | |
| > **You must add your Hugging Face token to `.env` to download models and samplers!** | |
| Create a file called `.env` in the project root with: | |
| ``` | |
| HF_TOKEN=hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
| ``` | |
| - Get your token from: https://huggingface.co/settings/tokens | |
| - If missing, model download and pipeline will fail. | |
| --- | |
| ## πΊ Demo & Screenshots | |
| <div align="center"> | |
| <img src="https://cdn-uploads.huggingface.co/production/uploads/6421b1c68adc8881b974a89d/k8pgUlg4OvdUZpbMNTcp5.gif" alt="GhostPack Demo GIF" style="width: 470px; height: auto; border-radius: 18px; box-shadow: 0 0 32px #ff00ff; margin-bottom: 28px;"> | |
| <div style="display: flex; flex-direction: row; justify-content: center; gap: 28px;"> | |
| <img src="https://cdn-uploads.huggingface.co/production/uploads/6421b1c68adc8881b974a89d/7ABE2lOA4LOUtPfh1mhxP.png" alt="Main Interface" style="width: 320px; height: auto; border-radius: 12px; box-shadow: 0 0 18px #00ffcc;"> | |
| <img src="https://cdn-uploads.huggingface.co/production/uploads/6421b1c68adc8881b974a89d/9qNVRX2eM2iCY8xQKcOwW.png" alt="Advanced Settings" style="width: 320px; height: auto; border-radius: 12px; box-shadow: 0 0 18px #00ffcc;"> | |
| <img src="https://cdn-uploads.huggingface.co/production/uploads/6421b1c68adc8881b974a89d/--fIS9ITg4-VqN22ySoa2.png" alt="Logs Display" style="width: 320px; height: auto; border-radius: 12px; box-shadow: 0 0 18px #00ffcc;"> | |
| </div> | |
| <sub> | |
| <strong>Main Interface</strong> β’ <strong>Advanced Settings</strong> β’ <strong>Logs</strong> | |
| </sub> | |
| </div> | |
| > π¬ [More Demo Clips](https://github.com/ghostai1/GhostPack/blob/main/demo_videos) | |
| --- | |
| ## βοΈ Installation (Beta) | |
| > πΎ *30GB+ free space needed. Installs models on first run.* | |
| **Ubuntu** | |
| ```bash | |
| git clone https://github.com/ghostai1/GhostPack | |
| cd GhostPack | |
| chmod +x install_ubuntu.sh | |
| ./install_ubuntu.sh | |
| ``` | |
| **Windows** | |
| ```bash | |
| git clone https://github.com/ghostai1/GhostPack | |
| cd GhostPack | |
| install.bat | |
| ``` | |
| **macOS** | |
| ```bash | |
| git clone https://github.com/ghostai1/GhostPack | |
| cd GhostPack | |
| chmod +x install_macos.sh | |
| ./install_macos.sh | |
| ``` | |
| --- | |
| ## β‘ Quick Start | |
| ```bash | |
| source ~/ghostpack_venv/bin/activate | |
| cd ~/ghostpack_venv | |
| python ghostgradio.py --port 5666 --server 0.0.0.0 | |
| ``` | |
| - πΌοΈ Upload an image | |
| - π¬ Enter a prompt (e.g. βA graceful dance movementβ) | |
| - π Enable Teacache, set video seconds, steps, CRF | |
| - π See live frame preview + logs | |
| - πΎ Export MP4 instantly | |
| - π₯οΈ Monitor GPU: `nvidia-smi` | |
| --- | |
| ## πΊοΈ Roadmap | |
| - π£οΈ **AI Voice**: Add local voiceover/narration | |
| - πΌοΈ **AI Start Images**: Next-level starting frames | |
| - πΆοΈ **VR Support**: Immersive AI video output | |
| - π **More Samplers/Models** coming soon | |
| --- | |
| ## π¬ Community & Help | |
| - [Discord](https://discord.gg/ghostpack) β Feedback & support | |
| - [GitHub Issues](https://github.com/ghostai1/GhostPack/issues) β Bugs & requests | |
| - [Hugging Face Space](https://huggingface.co/spaces/ghostai1/GhostPackDemo) β Try the live demo | |
| --- | |
| ## π¨βπ» Contributing | |
| - Fork, branch, and PR! Beta testers wanted! | |
| - See [CONTRIBUTING.md](https://github.com/ghostai1/GhostPack/blob/main/CONTRIBUTING.md) | |
| --- | |
| ## πͺͺ License | |
| Apache 2.0 | |
| **GhostPack by [ghostai1](https://github.com/ghostai1/GhostPack) Β· [Hugging Face](https://huggingface.co/ghostai1)** | |
| *BETA build Β· Created June 11, 2025* | |
| --- | |