kmeans.verbose =Truekmeans.niter =300kmeans.nredo =10kmeans.seed =0index = faiss.GpuIndexFlatL2(res, d, flat_config) kmeans.train(embeddings, index) dists, pred_labels = index.search(embeddings,1) pred_labels = pred_labels.squeeze() nmi = normalized_mutual_info_score(labels, pred_la...
XGradCAMLike GradCAM but scale the gradients by the normalized activations AblationCAMZero out activations and measure how the output drops (this repository includes a fast batched implementation) ScoreCAMPerbutate the image by the scaled activations and measure how the output drops ...