2cfa9aa576ae7544f76e66854edd304690a5822b,paderbox/speech_enhancement/beamformer_wrapper.py,,get_multi_source_bf_vector_from_masks,#,334

Before Change


                f"np.max(np.abs(beamforming_vector)) = {value}"
            )
    else:
        beamforming_vector = np.stack(list(
            pb.speech_enhancement.get_single_source_bf_vector(
                method,
                target_psd_matrix=target_psd[:, k, :, :],
                noise_psd_matrix=interference_psd[:, k, :, :],
            ) for k in range(K)
        ), axis=1)

    return beamforming_vector

After Change


            )

        beamforming_vector = list()
        for k in range(K - 1):
            if denominator_matrix_for_bf is None:
                denominator_matrix = None
            elif denominator_matrix_for_bf == "noise":
                denominator_matrix = target_psd[:, -1, :, :]
            elif denominator_matrix_for_bf == "interference":
                denominator_matrix = interference_psd[:, k, :, :]

            beamforming_vector.append(
                pb.speech_enhancement.get_single_source_bf_vector(
                    method,
                    target_psd_matrix=target_psd[:, k, :, :],
                    noise_psd_matrix=denominator_matrix,
                )
            )

        beamforming_vector = np.stack(beamforming_vector, axis=1)

    return beamforming_vector
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: fgnt/pb_bss
Commit Name: 2cfa9aa576ae7544f76e66854edd304690a5822b
Time: 2019-08-08
Author: mail@lukas-drude.de
File Name: paderbox/speech_enhancement/beamformer_wrapper.py
Class Name:
Method Name: get_multi_source_bf_vector_from_masks


Project Name: silvandeleemput/memcnn
Commit Name: 1b8b1ee7ac530f74a31a72cd28add5ad5ec37c45
Time: 2019-12-13
Author: silvandeleemput@gmail.com
File Name: memcnn/models/tests/test_revop.py
Class Name: SubModuleStack
Method Name: forward


Project Name: scikit-image/scikit-image
Commit Name: dd17b42f452bc156f55e3400f8ebc84d58761e65
Time: 2019-12-30
Author: gregory.lee@cchmc.org
File Name: skimage/filters/_window.py
Class Name:
Method Name: window