MCPcopy Create free account
hub / github.com/Sin3DM/Sin3DM / eval_Div_given_paths

Function eval_Div_given_paths

evaluation/patch_utils.py:169–181  ·  view source on GitHub ↗
(data_paths, device="cpu")

Source from the content-addressed store, hash-verified

167
168
169def eval_Div_given_paths(data_paths, device="cpu"):
170 random.seed(1234)
171
172 gen_data_list = []
173 for path in data_paths:
174 gen_data = load_voxgrid(path, resolution=128, device=device)
175 gen_data_list.append(gen_data)
176
177 gen_data_list = torch.stack(gen_data_list, dim=0)
178 div = pairwise_IoU_dist(gen_data_list).round(6)
179
180 eval_results = {'Div': div}
181 return eval_results

Callers 1

eval_full.pyFile · 0.90

Calls 2

load_voxgridFunction · 0.85
pairwise_IoU_distFunction · 0.85

Tested by

no test coverage detected