• Stefy Lanza (nextime / spora )'s avatar
    Add automatic RGB/BGR colorspace detection for video models · 5b724e07
    Stefy Lanza (nextime / spora ) authored
    - Add detect_model_colorspace() function to detect colorspace by generating test red frame
    - Add get_model_colorspace() helper to retrieve or detect colorspace
    - Modify frame processing to auto-swap BGR based on model config
    - Preserve --swap_bgr flag as manual override
    - Colorspace is saved to model config (~/.config/videogen/models.json) after first detection
    5b724e07
videogen.py 472 KB