Skip to content
This repository was archived by the owner on Oct 13, 2022. It is now read-only.
This repository was archived by the owner on Oct 13, 2022. It is now read-only.

Bug in computing encoder padding mask #240

Description

@csukuangfj

It happens only when --concatenate-cuts=True.

See the problematic code below (line 692):

for idx in range(supervision_segments.size(0)):
# Note: TorchScript doesn't allow to unpack tensors as tuples
sequence_idx = supervision_segments[idx, 0].item()
start_frame = supervision_segments[idx, 1].item()
num_frames = supervision_segments[idx, 2].item()
lengths[sequence_idx] = start_frame + num_frames

When --concatenate-cuts=True, several utterances may be concatenated into one sequence.
So lengths[sequence_idx] may correspond to multiple utterances. Later utterances will OVERWRITE
the value of lengths[sequence_idx] set by earlier utterances if the sequence with sequence_id contains
at least two utterances.

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