From f0208f098306912bb92d678121eb5cebbf66e52c Mon Sep 17 00:00:00 2001 From: Scott Register Date: Sun, 27 Jul 2025 08:10:20 -0700 Subject: [PATCH] fixup some running stuff --- README.md | 9 ++++----- runpod_setup.sh | 35 ++++++----------------------------- 2 files changed, 10 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index c9d12ab..7683bd1 100644 --- a/README.md +++ b/README.md @@ -93,16 +93,15 @@ git clone cd sam2e ./runpod_setup.sh -# Then use the convenience scripts: -./run_streaming.sh # For streaming approach (recommended) -./run_chunked.sh # For chunked approach +# Then run with Python directly: +python -m vr180_streaming config-streaming-runpod.yaml # Streaming (recommended) +python -m vr180_matting config-chunked-runpod.yaml # Chunked (original) ``` The setup script will: - Install all dependencies - Download SAM2 models -- Create example configs -- Set up convenience scripts +- Create example configs for both approaches ## Configuration diff --git a/runpod_setup.sh b/runpod_setup.sh index 4496899..7e3b5e1 100755 --- a/runpod_setup.sh +++ b/runpod_setup.sh @@ -159,28 +159,7 @@ if [ ! -f "config-streaming-runpod.yaml" ]; then print_error "config-streaming-runpod.yaml not found - please check the repository" fi -# Create convenience run scripts -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 +# Skip creating convenience scripts - use Python directly # Test installation print_status "Testing installation..." @@ -246,12 +225,10 @@ echo echo "2. Choose your processing approach:" echo echo " a) STREAMING (Recommended - 2-3x faster, constant memory):" -echo " ./run_streaming.sh" -echo " # Or: python -m vr180_streaming config-streaming-runpod.yaml" +echo " python -m vr180_streaming config-streaming-runpod.yaml" echo echo " b) CHUNKED (Original - more stable, higher memory):" -echo " ./run_chunked.sh" -echo " # Or: python -m vr180_matting config-chunked-runpod.yaml" +echo " python -m vr180_matting config-chunked-runpod.yaml" echo echo "3. Optional: Edit configs first:" echo " nano config-streaming-runpod.yaml # For streaming" @@ -273,12 +250,12 @@ echo echo "🎯 Example Commands:" echo "===================" 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 "# 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 "# 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 "Happy matting! 🎬"