abbfdc5b04ec1824e42cebb472626d234ff7bd36,scripts/speaker_embedding.py,,test,#Any#Any#Any#Any#Any#,383
Before Change
duration, min_duration=min_duration)
fX = sequence_embedding.transform(X, batch_size=batch_size)
if distance == "angular":
cosine_distance = pdist(fX, metric="cosine")
y_distance = np.arccos(np.clip(1.0 - cosine_distance, -1.0, 1.0))
else:
y_distance = pdist(fX, metric=distance)
y_true = pdist(y, metric="chebyshev") < 1
After Change
// -- PREPROCESSORS --
for key, preprocessor in config.get("preprocessors", {}).items():
preprocessor_name = preprocessor["name"]
preprocessor_params = preprocessor.get("params", {})
preprocessors = __import__("pyannote.audio.preprocessors",
fromlist=[preprocessor_name])
Preprocessor = getattr(preprocessors, preprocessor_name)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pyannote/pyannote-audio
Commit Name: abbfdc5b04ec1824e42cebb472626d234ff7bd36
Time: 2017-01-09
Author: bredin@limsi.fr
File Name: scripts/speaker_embedding.py
Class Name:
Method Name: test
Project Name: scipy/scipy
Commit Name: efa48065364e7a8ba5d7022692129aae5cf50337
Time: 2014-08-13
Author: cairj3@mail2.sysu.edu.cn
File Name: scipy/cluster/tests/test_hierarchy.py
Class Name: TestFcluster
Method Name: check_fcluster
Project Name: deepfakes/faceswap
Commit Name: 8d1502c202ddd45caaec342cf7dd022008fabd5f
Time: 2019-05-16
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/vgg_face.py
Class Name: VGGFace
Method Name: sorted_similarity