-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·46 lines (38 loc) · 1.28 KB
/
setup.sh
File metadata and controls
executable file
·46 lines (38 loc) · 1.28 KB
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
#!/bin/bash
echo "🚀 Setting up DAVID-Style Holographic Overlay Processor..."
# Create virtual environment
echo "📦 Creating virtual environment..."
python3 -m venv venv
# Activate virtual environment
echo "🔧 Activating virtual environment..."
source venv/bin/activate
# Upgrade pip
echo "⬆️ Upgrading pip..."
pip install --upgrade pip
# Install dependencies
echo "📋 Installing dependencies..."
pip install -r requirements.txt
# Test the installation
echo "🧪 Running basic tests..."
python test_hologram.py test_face.jpg
# Check if test passed
if [ -f "test_hologram_output.jpg" ]; then
echo "✅ Test passed! Holographic effect is working."
echo "📁 Generated files:"
echo " - test_hologram_output.jpg (holographic result)"
echo " - test_depth.jpg (depth map)"
echo " - test_mask.jpg (face mask)"
else
echo "❌ Test failed. Check the error messages above."
exit 1
fi
echo ""
echo "🎉 Setup complete! You can now:"
echo " 1. Run the web app: python app.py"
echo " 2. Open http://localhost:5000 in your browser"
echo " 3. Upload a video and apply the holographic effect"
echo ""
echo "💡 Tips:"
echo " - Use 'Fast' mode for real-time processing"
echo " - Works best with clear face videos"
echo " - M4 MacBook optimized for performance"