nvenc
This commit is contained in:
@@ -27,7 +27,7 @@ matting:
|
||||
sam2_model_cfg: "sam2.1_hiera_l" # Use large model for best quality
|
||||
sam2_checkpoint: "segment-anything-2/checkpoints/sam2.1_hiera_large.pt"
|
||||
memory_offload: true # Critical for streaming - offload to CPU when needed
|
||||
fp16: true # Use half precision for memory efficiency
|
||||
fp16: false # Disable FP16 to avoid type mismatch with compiled models for memory efficiency
|
||||
continuous_correction: true # Periodically refine tracking
|
||||
correction_interval: 300 # Correct every 5 seconds at 60fps
|
||||
|
||||
@@ -43,14 +43,14 @@ output:
|
||||
path: "/workspace/output_video.mp4" # Update with your output path
|
||||
format: "greenscreen" # "greenscreen" or "alpha"
|
||||
background_color: [0, 255, 0] # RGB for green screen
|
||||
video_codec: "libx264" # CPU encoding (use "h264_nvenc" if GPU encoding works)
|
||||
quality_preset: "medium" # CPU preset (ultrafast/fast/medium/slow/veryslow)
|
||||
video_codec: "h264_nvenc" # GPU encoding for L40 (fallback to CPU if not available)
|
||||
quality_preset: "p4" # NVENC preset (p1=fastest, p7=slowest/best quality)
|
||||
crf: 18 # Quality (0-51, lower = better, 18 = high quality)
|
||||
maintain_sbs: true # Keep side-by-side format with audio
|
||||
|
||||
hardware:
|
||||
device: "cuda"
|
||||
max_vram_gb: 40.0 # Conservative limit for 48GB GPU
|
||||
max_vram_gb: 44.0 # Conservative limit for L40 48GB VRAM
|
||||
max_ram_gb: 48.0 # RunPod container RAM limit
|
||||
|
||||
recovery:
|
||||
|
||||
Reference in New Issue
Block a user