055caff00ce0b411c26a3d37ccc538a5f3f47ab9,nussl/separation/deep/deep_clustering.py,DeepClustering,extract_features,#DeepClustering#,83
Before Change
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
def make_audio_signals(self):
signals = super().make_audio_signals()
residual = (self.audio_signal - sum(signals)).audio_data * (1 / len(signals))
After Change
raise ValueError("This model is not a deep clustering model!")
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()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: jhjacobsen/pytorch-i-revnet
Commit Name: 4b3ca2794fe54a4b71ab2bdaea57cfd01c2f2849
Time: 2020-05-06
Author: simon.pezold@web.de
File Name: models/model_utils.py
Class Name: psi
Method Name: forward
Project Name: interactiveaudiolab/nussl
Commit Name: 2ffbfa3a6bd3b8de8e21a762489346054dcd9ccc
Time: 2020-03-12
Author: prem@u.northwestern.edu
File Name: nussl/separation/deep/deep_mask_estimation.py
Class Name: DeepMaskEstimation
Method Name: extract_features