Skip to content

MixedCut:merge_supervisions errors while using mixing noise. #1498

@MinsungKang-Manuel

Description

@MinsungKang-Manuel

Hi.
I'm using NeMo project with lhotse, but I think it seems like there's a bug at merge_supervisions.

After adding noise by CutSet:mix, MixedCut:merge_supervisions cause warning at here.

_maybe_truncate_cut call DataCut:truncate and update cut and supervisions.
At that point, duration_past_end is used for supervisions start and duration, which differ from cut.start and cut.duration.

Since MixedCut:merge_supervisions uses sups[i].start and sups[i].duration, the truncated noise has little bit weired start and duration value.
Because the noise is also one of element of MixedCut, this line thought those segments are overlapped.

Is there any way to solve this? Should I change the sequence of lhotse augmentation?
current: add noise -> concatenate_samples & mege_supervisions
to: concatenate_samples & mege_supervisions -> add noise

Thanks in advance.

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