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

Function compute_frid

eval/eval_utils.py:101–111  ·  view source on GitHub ↗

Calculate the score of Fréchet Range Image Distance (FRID)

(reference, samples, dataset, results_path)

Source from the content-addressed store, hash-verified

99
100
101def 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
114def compute_fsvd(reference, samples, dataset, results_path):

Callers

nothing calls this directly

Calls 3

compute_logitsFunction · 0.90
compute_fdFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected