055caff00ce0b411c26a3d37ccc538a5f3f47ab9,nussl/separation/deep/deep_clustering.py,DeepClustering,extract_features,#DeepClustering#,83

Before Change


                raise ValueError("This model is not a deep clustering model!")
            embedding = output["embedding"]
            embedding_size = embedding.shape[-1]
            embedding = embedding.squeeze(-2)
            embedding = embedding.permute(2, 1, 0, 3)
            embedding = embedding.reshape(-1, embedding_size)
            embedding = embedding.data.cpu().numpy()
        return embedding

After Change


            embedding = output["embedding"]
            // swap back batch and sample dims
            if self.metadata["num_channels"] == 1:
                embedding = embedding.transpose(0, -2)
            embedding = embedding.squeeze(0).transpose(0, 1)
        return embedding.cpu().data.numpy()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: interactiveaudiolab/nussl
Commit Name: 055caff00ce0b411c26a3d37ccc538a5f3f47ab9
Time: 2020-03-11
Author: prem@u.northwestern.edu
File Name: nussl/separation/deep/deep_clustering.py
Class Name: DeepClustering
Method Name: extract_features


Project Name: erikwijmans/Pointnet2_PyTorch
Commit Name: 65a127f3d23527711259b6cdcce4e946b876f49c
Time: 2018-02-10
Author: ewijmans2@gmail.com
File Name: utils/pointnet2_modules.py
Class Name: PointnetSAModuleMSG
Method Name: forward


Project Name: SeanNaren/deepspeech.pytorch
Commit Name: 9ea14875825b2ab63a43ad2f0f5159d99df86d02
Time: 2019-07-29
Author: rasmus.arpe@gmail.com
File Name: model.py
Class Name: Lookahead
Method Name: forward