shikharbhardwaj / csgo-clips-autotrim

Experiments with using DL to automatically trim CSGO clips
Apache License 2.0
0 stars 0 forks source link

Video data preprocessing pipeline #1

Closed shikharbhardwaj closed 2 years ago

shikharbhardwaj commented 3 years ago

Preprocessing incoming video data to produce input for the learning algorithm:

Requirements

  1. Configurable Downsampling (resolution, FPS, color space)
  2. Frame correlation (timestamps)
shikharbhardwaj commented 3 years ago

Data modelling

Downsample Config

@dataclass
class DownsampleConfig:
    height: int
    width: int
    col_space: ColSpace
    fps: float
@dataclass
class FrameMetadata:
    pts: PresentationTimestamp
    file_uid: str
@dataclass
class FileMetadata:
    uid: str
    filename: str
    metadata: Dict[str, str] # Arbitrary file-level metadata (eg: Map, Clip Type, etc)

Questions

  1. How do we represent contextual clues?
  2. Do we store these at the frame level or file level?
shikharbhardwaj commented 2 years ago

P0 implementation

P1 implementation

Design overview

Untitled-2022-10-09-1933