ghostai1 commited on
Commit
e0b2024
·
verified ·
1 Parent(s): ea6acc3

Update GhostPackDemo/readme.md

Browse files
Files changed (1) hide show
  1. GhostPackDemo/readme.md +47 -71
GhostPackDemo/readme.md CHANGED
@@ -1,88 +1,66 @@
1
  # 👻🎬 GhostPackDemo · Apache-2.0
2
-
3
- Generate cinematic **30 FPS** AI videos from a single image—runs locally on your GPU.
4
-
5
  [![Python](https://img.shields.io/badge/python-3.8%2B-blue?logo=python)](https://python.org)
6
  [![License](https://img.shields.io/badge/license-Apache%202.0-green)](LICENSE)
7
- [![HF Space](https://img.shields.io/badge/🤗%20Spaces-Live%20Demo-orange)](https://huggingface.co/spaces/ghostai1/GhostPackDemo)
8
-
9
- ---
10
-
11
- ## ⚡ Showcase
12
-
13
- <p align="center">
14
- <img src="https://cdn-uploads.huggingface.co/production/uploads/6421b1c68adc8881b974a89d/k8pgUlg4OvdUZpbMNTcp5.gif" alt="GhostPack demo GIF" style="max-width:100%; height:auto;">
15
- </p>
16
 
17
  ---
18
 
19
- ## 1 · Overview
20
- GhostPackDemo bundles **HunyuanVideo** + **FramePack** into a single-script GPU pipeline (`ghostpack_main_fixed.py`) with a **Gradio** UI. Unleash photorealistic videos with ≥6GB VRAM GPUs, optimized for 8GB RAM laptops.
21
-
22
- ---
23
 
24
- ## 2 · Features
25
- - **Veo 3-Level AI**: Hyper-realistic video with next-frame prediction, smooth transitions.
26
- - **Phantom Speed**: Teacache cuts rendering time ~40% (~12-15s/frame on RTX 3060).
27
  - **Laptop Domination**: Supports 13B models on ≥6GB VRAM GPUs (e.g., RTX 3060).
28
- - **Custom Workflows**: Adjustable frame length, batch size, prompts.
29
- - **Live Preview**: Real-time frame previews in ghostgradio.py.
30
- - **Open Source**: Community-driven enhancements under Apache 2.0.
31
 
32
- ---
33
-
34
- ## 3 · Optimizations
35
  - **Speed**: Teacache (~40% faster, \( T_{\text{total}} \approx 0.6 \cdot T_{\text{base}} \)), Sage-Attention (~5-10% faster, \( T_{\text{attn}} \approx 0.9 \cdot T_{\text{base_attn}} \)), CUDA Tweaks (~10-15% latency reduction, \( L_{\text{CUDA}} \approx 0.85 \cdot L_{\text{base}} \)), Dynamic Scheduling (~15-20% task time, \( T_{\text{sched}} \approx 0.8 \cdot T_{\text{base_sched}} \)).
36
  - **Memory**: Context Packing (~50% VRAM save, \( M_{\text{VRAM}} \propto O(1) \)), tcmalloc (~5-20% overhead, \( O_{\text{mem}} \approx 0.8 \cdot O_{\text{glibc}} \)), Memory Cache (~25% fewer swaps, \( M_{\text{swap}} \approx 0.75 \cdot M_{\text{base_swap}} \)).
37
  - **Compute**: Dynamic Batching (~30-50% throughput, \( \text{Throughput} \propto B \cdot \text{FPS}_{\text{base}} \)).
38
  - **Efficiency**: Power Optimization (~20-30% power save, \( P_{\text{idle}} \approx 0.7 \cdot P_{\text{base_idle}} \)), Thread Tuning (~10-15% CPU boost, \( C_{\text{thread}} \approx 0.85 \cdot C_{\text{base_thread}} \)).
39
- - **VRAM Requirements**: 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).
40
-
41
- ---
42
 
43
- ## 4 · Demo
44
- Witness GhostPack’s spectral video generation with a neon-lit spectral battle scene sample. [More Demos](https://github.com/ghostai1/GhostPack/blob/main/demo_videos).
45
 
46
- ---
47
-
48
- ## 5 · Future
49
  - **Voice Generation**: AI-driven voice synthesis for narrated videos.
50
  - **AI Images**: High-quality starting frames with AI visuals.
51
- - **VR Integration**: Future VR video rendering support.
52
-
53
- ---
54
 
55
- ## 6 · Installation & How-To
56
- Requires >30GB disk, compatible hardware. Ubuntu: bash git clone https://github.com/ghostai1/GhostPack cd GhostPack chmod +x install_ubuntu.sh ./install_ubuntu.sh (NVIDIA GPU, 8GB RAM, Python 3.10, CUDA 12.6) Windows: bash git clone https://github.com/ghostai1/GhostPack cd GhostPack install.bat (Auto-downloads >30GB models, needs NVIDIA drivers) macOS: bash git clone https://github.com/ghostai1/GhostPack cd GhostPack chmod +x install_macos.sh ./install_macos.sh (M1/M2 support, slower with Metal) How-To: Launch GUI: bash source ~/ghostpack_venv/venv/bin/activate cd ~/ghostpack_venv python ghostgradio.py --port 5666 --server 0.0.0.0 Craft Spells: Upload image, prompt “A spectral figure glides through a neon-lit city,” enable teacache, set 15fps, 5s video. Summon Spirits: Monitor with nvidia-smi (~80-100% GPU usage). Export Results: Save MP4 with CRF 0-100. Latest Release: [Link](https://github.com/ghostai1/GhostPack/releases).
57
 
58
- ---
59
-
60
- ## 7 · Community
61
- Discord: [Join Now](https://discord.gg/ghostpack) for support. X: [Visit X](https://x.com/search?q=ghostpack) for news. Report Issues: [Link](https://github.com/ghostai1/GhostPack/issues).
62
-
63
- ---
64
-
65
- ## 8 · Technical Deep Dive
66
- Architecture: Built on HunyuanVideo and FramePackI2V_HY with LlamaModel and CLIPTextModel. Pipeline: k-diffusion with unipc for high-quality frame generation. Wiki: [Link](https://github.com/ghostai1/GhostPack/wiki).
67
-
68
- ---
69
-
70
- ## 9 · FAQ
71
- Hardware: Minimum 6GB VRAM (GTX 1650), 8GB RAM; Optimal 12GB VRAM (RTX 3060). Install: Clone and run appropriate install script (e.g., ./install_ubuntu.sh). Contribute: Yes, see Contributing Guidelines.
72
 
73
- ---
74
-
75
- ## 10 · Tutorials
76
- Getting Started: [View](https://github.com/ghostai1/GhostPack/wiki/Getting-Started). Advanced Configuration: [View](https://github.com/ghostai1/GhostPack/wiki/Advanced-Configuration). Video Export Tips: [View](https://github.com/ghostai1/GhostPack/wiki/Video-Export-Tips). More Tutorials: [Link](https://github.com/ghostai1/GhostPack/wiki/Tutorials).
77
 
78
- ---
 
 
 
79
 
80
- ## 11 · Contribute
81
- Fork repo, create branch, submit PRs, follow wiki standards, test with ghostgradio.py. Guidelines: [Link](https://github.com/ghostai1/GhostPack/blob/main/CONTRIBUTING.md).
 
 
 
82
 
83
- ---
 
 
84
 
85
- ## 12 · Screenshots
86
  - **Main Interface**:
87
  <p align="center">
88
  <img src="https://cdn-uploads.huggingface.co/production/uploads/6421b1c68adc8881b974a89d/7ABE2lOA4LOUtPfh1mhxP.png" alt="Main Interface" style="max-width:100%; height:auto;">
@@ -95,17 +73,15 @@ Fork repo, create branch, submit PRs, follow wiki standards, test with ghostgrad
95
  <p align="center">
96
  <img src="https://cdn-uploads.huggingface.co/production/uploads/6421b1c68adc8881b974a89d/--fIS9ITg4-VqN22ySoa2.png" alt="Logs Display" style="max-width:100%; height:auto;">
97
  </p>
98
- Add your own to showcase projects!
99
 
100
- ---
101
-
102
- ## 13 · Latest Files
103
- Latest File: [ghostgradio.py](https://github.com/ghostai1/GhostPack/blob/main/ghostgradio.py). Logs: [View](https://github.com/ghostai1/GhostPack/tree/main/outputs). Refresh Repo: [Link](https://github.com/ghostai1/GhostPack) | Refresh Logs: [Link](https://github.com/ghostai1/GhostPack/tree/main/outputs).
104
-
105
- ---
106
 
107
- ## 14 · License
108
- Distributed under Apache 2.0. See [LICENSE](LICENSE) for details.
109
 
110
  👻 GhostPack by ghostai1 | [GitHub](https://github.com/ghostai1/GhostPack) | [Hugging Face](https://huggingface.co/spaces/ghostai1/GhostPack)
111
- Created 07:19 PM CDT, June 11, 2025 😈⚡️
 
1
  # 👻🎬 GhostPackDemo · Apache-2.0
2
+ Generate cinematic **30 FPS** AI videos from a single image—runs locally on your GPU with ease.
 
 
3
  [![Python](https://img.shields.io/badge/python-3.8%2B-blue?logo=python)](https://python.org)
4
  [![License](https://img.shields.io/badge/license-Apache%202.0-green)](LICENSE)
5
+ [![HF Space](https://img.shields.io/badge/🤗%20Spaces-Live%20Demo-orange)](https://huggingface.co/spaces/ghostai1/GhostPackDemo)
 
 
 
 
 
 
 
 
6
 
7
  ---
8
 
9
+ ## Overview
10
+ GhostPackDemo integrates **HunyuanVideo** and **FramePack** into a streamlined GPU pipeline (`ghostpack_main_fixed.py`) with a user-friendly **Gradio** UI. Create photorealistic videos using GPUs with ≥6GB VRAM, optimized for 8GB RAM laptops.
 
 
11
 
12
+ ## Features
13
+ - **Veo 3-Level AI**: Delivers hyper-realistic videos with next-frame prediction and smooth transitions.
14
+ - **Phantom Speed**: Teacache reduces rendering time by ~40% (~12-15s/frame on RTX 3060).
15
  - **Laptop Domination**: Supports 13B models on ≥6GB VRAM GPUs (e.g., RTX 3060).
16
+ - **Custom Workflows**: Adjust frame length, batch size, and prompts to suit your creativity.
17
+ - **Live Preview**: View real-time frame previews in ghostgradio.py.
18
+ - **Open Source**: Enhanced by community contributions under Apache 2.0.
19
 
20
+ ## Optimizations
 
 
21
  - **Speed**: Teacache (~40% faster, \( T_{\text{total}} \approx 0.6 \cdot T_{\text{base}} \)), Sage-Attention (~5-10% faster, \( T_{\text{attn}} \approx 0.9 \cdot T_{\text{base_attn}} \)), CUDA Tweaks (~10-15% latency reduction, \( L_{\text{CUDA}} \approx 0.85 \cdot L_{\text{base}} \)), Dynamic Scheduling (~15-20% task time, \( T_{\text{sched}} \approx 0.8 \cdot T_{\text{base_sched}} \)).
22
  - **Memory**: Context Packing (~50% VRAM save, \( M_{\text{VRAM}} \propto O(1) \)), tcmalloc (~5-20% overhead, \( O_{\text{mem}} \approx 0.8 \cdot O_{\text{glibc}} \)), Memory Cache (~25% fewer swaps, \( M_{\text{swap}} \approx 0.75 \cdot M_{\text{base_swap}} \)).
23
  - **Compute**: Dynamic Batching (~30-50% throughput, \( \text{Throughput} \propto B \cdot \text{FPS}_{\text{base}} \)).
24
  - **Efficiency**: Power Optimization (~20-30% power save, \( P_{\text{idle}} \approx 0.7 \cdot P_{\text{base_idle}} \)), Thread Tuning (~10-15% CPU boost, \( C_{\text{thread}} \approx 0.85 \cdot C_{\text{base_thread}} \)).
25
+ - **VRAM Requirements**: 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).
 
 
26
 
27
+ ## Demo
28
+ Experience GhostPack’s spectral video generation with a neon-lit spectral battle scene sample. [More Demos](https://github.com/ghostai1/GhostPack/blob/main/demo_videos).
29
 
30
+ ## Future
 
 
31
  - **Voice Generation**: AI-driven voice synthesis for narrated videos.
32
  - **AI Images**: High-quality starting frames with AI visuals.
33
+ - **VR Integration**: Future support for VR video rendering.
 
 
34
 
35
+ ## Installation & How-To
36
+ Requires >30GB disk, compatible hardware. Ubuntu: bash git clone https://github.com/ghostai1/GhostPack cd GhostPack chmod +x install_ubuntu.sh ./install_ubuntu.sh (NVIDIA GPU, 8GB RAM, Python 3.10, CUDA 12.6) Windows: bash git clone https://github.com/ghostai1/GhostPack cd GhostPack install.bat (Auto-downloads >30GB models, needs NVIDIA drivers) macOS: bash git clone https://github.com/ghostai1/GhostPack cd GhostPack chmod +x install_macos.sh ./install_macos.sh (M1/M2 support, slower with Metal) How-To: Launch GUI: bash source ~/ghostpack_venv/venv/bin/activate cd ~/ghostpack_venv python ghostgradio.py --port 5666 --server 0.0.0.0 Craft Spells: Upload an image, use prompt “A spectral figure glides through a neon-lit city,” enable teacache, set 15fps, 5s video. Summon Spirits: Monitor with nvidia-smi (~80-100% GPU usage). Export Results: Save MP4 with adjustable CRF (0-100). Latest Release: [Link](https://github.com/ghostai1/GhostPack/releases).
37
 
38
+ ## Community
39
+ - **Discord**: [Join Now](https://discord.gg/ghostpack) for support.
40
+ - **X**: [Visit X](https://x.com/search?q=ghostpack) for news.
41
+ - **Report Issues**: [Link](https://github.com/ghostai1/GhostPack/issues).
 
 
 
 
 
 
 
 
 
 
42
 
43
+ ## Technical Deep Dive
44
+ - **Architecture**: Built on HunyuanVideo and FramePackI2V_HY with LlamaModel and CLIPTextModel.
45
+ - **Pipeline**: Uses k-diffusion with unipc for high-quality frame generation.
46
+ - **Wiki**: [Link](https://github.com/ghostai1/GhostPack/wiki).
47
 
48
+ ## FAQ
49
+ - **Hardware**: Minimum 6GB VRAM (GTX 1650), 8GB RAM; Optimal 12GB VRAM (RTX 3060).
50
+ - **Install**: Clone and run the appropriate install script (e.g., ./install_ubuntu.sh).
51
+ - **Contribute**: Yes, see Contributing Guidelines.
52
 
53
+ ## Tutorials
54
+ - **Getting Started**: [View](https://github.com/ghostai1/GhostPack/wiki/Getting-Started).
55
+ - **Advanced Configuration**: [View](https://github.com/ghostai1/GhostPack/wiki/Advanced-Configuration).
56
+ - **Video Export Tips**: [View](https://github.com/ghostai1/GhostPack/wiki/Video-Export-Tips).
57
+ - **More Tutorials**: [Link](https://github.com/ghostai1/GhostPack/wiki/Tutorials).
58
 
59
+ ## Contribute
60
+ - Fork the repository, create a branch, submit pull requests, follow wiki standards, and test with ghostgradio.py.
61
+ - **Guidelines**: [Link](https://github.com/ghostai1/GhostPack/blob/main/CONTRIBUTING.md).
62
 
63
+ ## Screenshots
64
  - **Main Interface**:
65
  <p align="center">
66
  <img src="https://cdn-uploads.huggingface.co/production/uploads/6421b1c68adc8881b974a89d/7ABE2lOA4LOUtPfh1mhxP.png" alt="Main Interface" style="max-width:100%; height:auto;">
 
73
  <p align="center">
74
  <img src="https://cdn-uploads.huggingface.co/production/uploads/6421b1c68adc8881b974a89d/--fIS9ITg4-VqN22ySoa2.png" alt="Logs Display" style="max-width:100%; height:auto;">
75
  </p>
76
+ Add your own to showcase projects!
77
 
78
+ ## Latest Files
79
+ - **Latest File**: [ghostgradio.py](https://github.com/ghostai1/GhostPack/blob/main/ghostgradio.py).
80
+ - **Logs**: [View](https://github.com/ghostai1/GhostPack/tree/main/outputs).
81
+ - **Refresh Repo**: [Link](https://github.com/ghostai1/GhostPack) | **Refresh Logs**: [Link](https://github.com/ghostai1/GhostPack/tree/main/outputs).
 
 
82
 
83
+ ## License
84
+ Distributed under Apache 2.0. See [LICENSE](LICENSE) for details.
85
 
86
  👻 GhostPack by ghostai1 | [GitHub](https://github.com/ghostai1/GhostPack) | [Hugging Face](https://huggingface.co/spaces/ghostai1/GhostPack)
87
+ Created 07:23 PM CDT, June 11, 2025 😈⚡️