jacklangerman
commited on
Commit
•
bb60056
1
Parent(s):
60d3301
remove mean distance option for cv
Browse files- hoho/wed.py +0 -3
hoho/wed.py
CHANGED
@@ -33,9 +33,6 @@ def update_cv(cv, gt_vertices):
|
|
33 |
diameter = cdist(gt_vertices, gt_vertices).max()
|
34 |
# Cost of adding or deleting a vertex is set to -cv times the diameter of the ground truth wireframe
|
35 |
cv = -cv * diameter
|
36 |
-
elif cv == 0:
|
37 |
-
# Cost of adding or deleting a vertex is set to the average distance of the ground truth vertices from their mean
|
38 |
-
cv = np.linalg.norm(np.mean(gt_vertices, axis=0) - gt_vertices, axis=1).mean()
|
39 |
return cv
|
40 |
|
41 |
def compute_WED(pd_vertices, pd_edges, gt_vertices, gt_edges, cv_ins=-1/2, cv_del=-1/4, ce=1.0, normalized=True, preregister=True, single_scale=True):
|
|
|
33 |
diameter = cdist(gt_vertices, gt_vertices).max()
|
34 |
# Cost of adding or deleting a vertex is set to -cv times the diameter of the ground truth wireframe
|
35 |
cv = -cv * diameter
|
|
|
|
|
|
|
36 |
return cv
|
37 |
|
38 |
def compute_WED(pd_vertices, pd_edges, gt_vertices, gt_edges, cv_ins=-1/2, cv_del=-1/4, ce=1.0, normalized=True, preregister=True, single_scale=True):
|