Skip to content

Dataset preprocessor crashes when it tries to preprocess a video with mono audio. #70

@gitmylo

Description

@gitmylo

RuntimeError: Given groups=1, weight of size [128, 2, 3, 3], expected input[1, 1, 1895, 66] to have 2 channels, but got 1 channels instead
Happens in the audio encoder's first conv2d layer when attempting to preprocess a video with a single audio channel (mono).

Possible fix: detect when a file has mono audio (check if channel dim == 1) and concat 2 copies on the channel dim to create a fake stereo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions