Compare commits

...

2 Commits

Author SHA1 Message Date
7431954482 add main 2025-07-27 08:15:56 -07:00
f0208f0983 fixup some running stuff 2025-07-27 08:10:20 -07:00
3 changed files with 19 additions and 34 deletions

View File

@@ -93,16 +93,15 @@ git clone <repository-url>
cd sam2e cd sam2e
./runpod_setup.sh ./runpod_setup.sh
# Then use the convenience scripts: # Then run with Python directly:
./run_streaming.sh # For streaming approach (recommended) python -m vr180_streaming config-streaming-runpod.yaml # Streaming (recommended)
./run_chunked.sh # For chunked approach python -m vr180_matting config-chunked-runpod.yaml # Chunked (original)
``` ```
The setup script will: The setup script will:
- Install all dependencies - Install all dependencies
- Download SAM2 models - Download SAM2 models
- Create example configs - Create example configs for both approaches
- Set up convenience scripts
## Configuration ## Configuration

View File

@@ -159,28 +159,7 @@ if [ ! -f "config-streaming-runpod.yaml" ]; then
print_error "config-streaming-runpod.yaml not found - please check the repository" print_error "config-streaming-runpod.yaml not found - please check the repository"
fi fi
# Create convenience run scripts # Skip creating convenience scripts - use Python directly
print_status "Creating run scripts..."
# Chunked approach
cat > run_chunked.sh << 'EOF'
#!/bin/bash
# Run VR180 matting with chunked approach (original)
echo "🎬 Running VR180 matting - Chunked Approach"
echo "==========================================="
python -m vr180_matting.main config-chunked-runpod.yaml "$@"
EOF
chmod +x run_chunked.sh
# Streaming approach
cat > run_streaming.sh << 'EOF'
#!/bin/bash
# Run VR180 matting with streaming approach (optimized)
echo "🎬 Running VR180 matting - Streaming Approach"
echo "============================================="
python -m vr180_streaming.main config-streaming-runpod.yaml "$@"
EOF
chmod +x run_streaming.sh
# Test installation # Test installation
print_status "Testing installation..." print_status "Testing installation..."
@@ -246,12 +225,10 @@ echo
echo "2. Choose your processing approach:" echo "2. Choose your processing approach:"
echo echo
echo " a) STREAMING (Recommended - 2-3x faster, constant memory):" echo " a) STREAMING (Recommended - 2-3x faster, constant memory):"
echo " ./run_streaming.sh" echo " python -m vr180_streaming config-streaming-runpod.yaml"
echo " # Or: python -m vr180_streaming config-streaming-runpod.yaml"
echo echo
echo " b) CHUNKED (Original - more stable, higher memory):" echo " b) CHUNKED (Original - more stable, higher memory):"
echo " ./run_chunked.sh" echo " python -m vr180_matting config-chunked-runpod.yaml"
echo " # Or: python -m vr180_matting config-chunked-runpod.yaml"
echo echo
echo "3. Optional: Edit configs first:" echo "3. Optional: Edit configs first:"
echo " nano config-streaming-runpod.yaml # For streaming" echo " nano config-streaming-runpod.yaml # For streaming"
@@ -273,12 +250,12 @@ echo
echo "🎯 Example Commands:" echo "🎯 Example Commands:"
echo "===================" echo "==================="
echo "# Process with custom output path:" echo "# Process with custom output path:"
echo "./run_streaming.sh --output /workspace/output/my_video.mp4" echo "python -m vr180_streaming config-streaming-runpod.yaml --output /workspace/output/my_video.mp4"
echo echo
echo "# Process specific frame range:" echo "# Process specific frame range:"
echo "./run_streaming.sh --start-frame 1000 --max-frames 5000" echo "python -m vr180_streaming config-streaming-runpod.yaml --start-frame 1000 --max-frames 5000"
echo echo
echo "# Override scale for quality:" echo "# Override scale for quality:"
echo "./run_streaming.sh --scale 0.75" echo "python -m vr180_streaming config-streaming-runpod.yaml --scale 0.75"
echo echo
echo "Happy matting! 🎬" echo "Happy matting! 🎬"

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env python3
"""
VR180 Streaming entry point for python -m vr180_streaming
"""
from .main import main
if __name__ == "__main__":
main()