c6e474fb13be0362c6f239f81c128f6d4c751da4,pyannote/audio/labeling/tasks/resegmentation.py,Resegmentation,apply,#Resegmentation#Any#Any#,247

Before Change



            // revert non-speech regions back to original
            speech = hypothesis.get_timeline().support()
            new_hypothesis = new_hypothesis.crop(speech)

        else:

            // sequence of most likely class index (including 0=non-speech)
            best_class_indices = np.argmax(scores, axis=1)

            // reconstruct annotation
            new_hypothesis = one_hot_decoding(
                best_class_indices, window, labels=labels)

        new_hypothesis.uri = hypothesis.uri
        return new_hypothesis

After Change


        // speaker labels
        labels = batch_generator.specifications["y"]["classes"][1:]

        return self._decode(current_file, hypothesis, scores, labels)


class ResegmentationWithOverlap(Resegmentation):
    Re-segmentation with overlap
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pyannote/pyannote-audio
Commit Name: c6e474fb13be0362c6f239f81c128f6d4c751da4
Time: 2019-07-01
Author: bredin@limsi.fr
File Name: pyannote/audio/labeling/tasks/resegmentation.py
Class Name: Resegmentation
Method Name: apply


Project Name: analysiscenter/batchflow
Commit Name: 1f47b5c59387812151bbe0f6a5838fed4fa09a1e
Time: 2017-12-14
Author: rhudor@gmail.com
File Name: dataset/models/tf/refinenet.py
Class Name: RefineNet
Method Name: decoder_block


Project Name: albu/albumentations
Commit Name: ff1a17f52f363a3901f2b7a2d720b7745e1c3bc4
Time: 2019-10-10
Author: creafz@gmail.com
File Name: benchmark/benchmark.py
Class Name: RandomSizedCrop_64_512
Method Name: torchvision