b16cb3485a7a653435d08734ce752b561aba6432,pyannote/audio/embedding/approaches/classification.py,Classification,load_more,#Classification#Any#,104

Before Change


            classifier_pt = self.CLASSIFIER_PT.format(
                train_dir=self.train_dir_, epoch=self.epoch_)
        else:
            msg = "TODO: infer classifier_pt from model_pt"
            raise NotImplementedError(msg)

        classifier_state = torch.load(
            classifier_pt, map_location=lambda storage, loc: storage)
        self.classifier_.load_state_dict(classifier_state)

After Change


            classifier_pt = self.CLASSIFIER_PT.format(
                train_dir=self.train_dir_, epoch=self.epoch_)
        else:
            classifier_pt = model_pt.with_suffix(".classifier.pt")

        classifier_state = torch.load(
            classifier_pt, map_location=lambda storage, loc: storage)
        self.classifier_.load_state_dict(classifier_state)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pyannote/pyannote-audio
Commit Name: b16cb3485a7a653435d08734ce752b561aba6432
Time: 2019-12-06
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/approaches/classification.py
Class Name: Classification
Method Name: load_more


Project Name: pyannote/pyannote-audio
Commit Name: b16cb3485a7a653435d08734ce752b561aba6432
Time: 2019-12-06
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/approaches/center_loss.py
Class Name: CenterLoss
Method Name: load_more


Project Name: pyannote/pyannote-audio
Commit Name: a54b8d7e76844632fee46466b57f79b29e9e32a8
Time: 2019-12-06
Author: bredin@limsi.fr
File Name: pyannote/audio/labeling/tasks/speech_activity_detection.py
Class Name: DomainAwareSpeechActivityDetection
Method Name: load_more