Calculate the score of Fréchet Point-based Volume Distance (FPVD)
(reference, samples, dataset, results_path)
| 125 | |
| 126 | |
| 127 | def compute_fpvd(reference, samples, dataset, results_path): |
| 128 | """ |
| 129 | Calculate the score of Fréchet Point-based Volume Distance (FPVD) |
| 130 | |
| 131 | """ |
| 132 | print('Evaluating (FPVD) ...') |
| 133 | gt_logits, samples_logits = compute_logits(dataset=dataset, modality='point_voxel', reference=reference, sample=samples, results_path=results_path) |
| 134 | score = compute_fd(gt_logits, samples_logits) |
| 135 | print(OUTPUT_TEMPLATE.format('FPVD', score)) |
| 136 | |
| 137 | return score |
| 138 | |
| 139 | |
| 140 | def evaluate( |
no test coverage detected