28 lines
720 B
YAML
28 lines
720 B
YAML
input:
|
|
video_path: "path/to/input.mp4"
|
|
|
|
processing:
|
|
scale_factor: 0.5 # 0.25, 0.5, 1.0
|
|
chunk_size: 900 # frames, 0 for full video
|
|
overlap_frames: 60 # for chunked processing
|
|
|
|
detection:
|
|
confidence_threshold: 0.7
|
|
model: "yolov8n" # yolov8n, yolov8s, yolov8m
|
|
|
|
matting:
|
|
use_disparity_mapping: true
|
|
memory_offload: true
|
|
fp16: true
|
|
sam2_model_cfg: "sam2.1_hiera_l"
|
|
sam2_checkpoint: "segment-anything-2/checkpoints/sam2.1_hiera_large.pt"
|
|
|
|
output:
|
|
path: "path/to/output/"
|
|
format: "alpha" # "alpha" or "greenscreen"
|
|
background_color: [0, 255, 0] # for greenscreen
|
|
maintain_sbs: true # keep side-by-side format
|
|
|
|
hardware:
|
|
device: "cuda"
|
|
max_vram_gb: 10 # RTX 3080 limit |