WeixuanYuan's picture
Upload 66 files
ae1bdf7 verified
raw
history blame
425 Bytes
import numpy as np
from metrics.precision_recall import knn_precision_recall_features
# η”Ÿζˆζ ·ζœ¬
real_features = np.random.normal(0, 1, size=(1600, 512))
generated_features = np.random.normal(0, 1, size=(1600, 512))
state = knn_precision_recall_features(real_features, generated_features, nhood_sizes=[1, 2, 3, 4, 5, 10],
row_batch_size=16, col_batch_size=16)
print(state)