if "estimates" not in output:
raise ValueError("This model is not a mask estimation model!")
_masks = output["estimates"].cpu()
self.assignments = _masks
self.num_sources = self.assignments.shape[0]
self.masks = []
After Change
raise ValueError("This model is not a mask estimation model!")
_masks = (output["estimates"] / input_data["magnitude_spectrogram"].unsqueeze(-1)).squeeze(0)
_masks = _masks.permute(3, 1, 0, 2)
_masks = _masks.cpu().data.numpy()
self.assignments = _masks