MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / compute_fpvd

Function compute_fpvd

eval/eval_utils.py:127–137  ·  view source on GitHub ↗

Calculate the score of Fréchet Point-based Volume Distance (FPVD)

(reference, samples, dataset, results_path)

Source from the content-addressed store, hash-verified

125
126
127def 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
140def evaluate(

Callers 1

evaluateFunction · 0.85

Calls 3

compute_logitsFunction · 0.90
compute_fdFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected