Browse Source

Fix path for MeshFeatureSample execution in evaluation.py to ensure correct file access during feature computation

main
mckay 2 months ago
parent
commit
f7760d5ab8
  1. 2
      code/evaluation/evaluation.py

2
code/evaluation/evaluation.py

@ -178,7 +178,7 @@ def compute_all():
gt_ptangle = np.loadtxt(os.path.join(gt_path, line + '_detectfea4e-3.ptangle'))
pred_ptangle_path = meshfile[:-4]+'_4e-3.ptangle'
if not os.path.exists(pred_ptangle_path) or args.regen:
os.system('./MeshFeatureSample/build/SimpleSample -i {} -o {} -s 4e-3'.format(meshfile, pred_ptangle_path))
os.system('./evaluation/MeshFeatureSample/build/SimpleSample -i {} -o {} -s 4e-3'.format(meshfile, pred_ptangle_path))
pred_ptangle = np.loadtxt(pred_ptangle_path).reshape(-1,4)
#for smooth case: if gt fea is empty, or pred fea is empty, then return 0

Loading…
Cancel
Save