File size: 6,124 Bytes
21c1812
e4fd977
21c1812
e4fd977
 
8f926f1
e4fd977
ad4ba0c
 
 
 
 
 
21c1812
ad4ba0c
 
 
e4fd977
 
21c1812
e4fd977
21c1812
8f926f1
21c1812
 
 
 
 
 
 
dc0adaa
c4445a3
22b5bd2
21c1812
e4fd977
21c1812
 
 
 
 
9d425e5
 
 
21c1812
 
 
 
 
 
 
285fc8c
 
 
 
 
21c1812
 
9d425e5
e4fd977
9d425e5
e76a344
 
 
 
 
 
 
 
 
 
 
 
 
6ee1dc0
8f926f1
6ee1dc0
285fc8c
21c1812
285fc8c
6ee1dc0
8f926f1
6ee1dc0
 
 
 
 
8f926f1
 
9d425e5
285fc8c
6ee1dc0
285fc8c
6ee1dc0
285fc8c
8f926f1
21c1812
9d425e5
e4fd977
9d425e5
21c1812
 
 
9d425e5
285fc8c
e4fd977
 
 
 
 
 
9d425e5
285fc8c
e4fd977
 
 
 
 
9d425e5
285fc8c
e4fd977
 
 
 
 
 
 
 
 
21c1812
e4fd977
8f926f1
 
 
 
 
21c1812
 
 
 
 
 
9d425e5
e4fd977
 
21c1812
e4fd977
21c1812
 
 
 
e4fd977
 
 
21c1812
e4fd977
21c1812
 
 
e4fd977
 
 
21c1812
9d425e5
21c1812
285fc8c
9d425e5
 
 
21c1812
e4fd977
285fc8c
8f926f1
21c1812
 
 
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
# πŸ‘»πŸš§ GhostPackDemo (BETA) – Next-Gen AI Video Generator

**Beta Demo β€” Try experimental AI video creation, directly on your GPU!**  
[![Python](https://img.shields.io/badge/python-3.8%2B-blue?logo=python)](https://python.org)
[![License](https://img.shields.io/badge/license-Apache%202.0-green)](LICENSE)
[![Live Demo](https://img.shields.io/badge/πŸ€—%20Spaces-Live%20Demo-orange)](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> &nbsp; β€’ &nbsp; <strong>Advanced Settings</strong> &nbsp; β€’ &nbsp; <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*

---