Calculate the score of Fréchet Range Image Distance (FRID)
(reference, samples, dataset, results_path)
| 99 | |
| 100 | |
| 101 | def compute_frid(reference, samples, dataset, results_path): |
| 102 | """ |
| 103 | Calculate the score of Fréchet Range Image Distance (FRID) |
| 104 | |
| 105 | """ |
| 106 | print('Evaluating (FRID) ...') |
| 107 | gt_logits, samples_logits = compute_logits(dataset=dataset, modality='range', reference=reference, sample=samples, results_path=results_path) |
| 108 | score = compute_fd(gt_logits, samples_logits) # 计算两个特征的均值和方差 |
| 109 | print(OUTPUT_TEMPLATE.format('FRID', score)) |
| 110 | |
| 111 | return score |
| 112 | |
| 113 | |
| 114 | def compute_fsvd(reference, samples, dataset, results_path): |
nothing calls this directly
no test coverage detected