Skip to content

Commit

Permalink
registration attempt works, now need to finish evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
freerafiki committed Jun 7, 2023
1 parent 03c5245 commit 5dc7bc5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion configs/prepare_cfg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
r : [0.2, 0.2, 0.1]
t : [-0.5, -0.5, -0.5]

voxel_size : 15000
voxel_size : 5000
move_to_origin : False

output_folder : 'data'
Expand Down
Binary file modified evaluation_pairwise/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified evaluation_pairwise/__pycache__/utils.cpython-36.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def evaluate_error(self):
return 1

def evaluate_against_gt(self):
if not self.gt_m:
if not self.gt:
print("Set the ground truth first!")
self.error = -1
else:
Expand Down
8 changes: 5 additions & 3 deletions test_modules/teaser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
from utils.helpers import *
import pandas as pd
from evaluation_pairwise.utils import chamfer_distance
from copy import deepcopy,copy

def register_fragments(pcd1, pcd2, voxel_size=2, resample_factor=5, verbose=False):


dist1 = pcd1.compute_nearest_neighbor_distance()
dist2 = pcd1.compute_nearest_neighbor_distance()
#print(dist1, dist2)
Expand Down Expand Up @@ -82,8 +82,10 @@ def run(obj1_seg_parts_array, obj2_seg_parts_array, MIN_PCD_SIZE=1000):
o1s = []
o2s = []

for o1, pcd_part1 in enumerate(obj1_seg_parts_array):
for o2, pcd_part2 in enumerate(obj2_seg_parts_array):
for o1, seg_part1 in enumerate(obj1_seg_parts_array):
for o2, seg_part2 in enumerate(obj2_seg_parts_array):
pcd_part1 = seg_part1.pcd
pcd_part2 = seg_part2.pcd
cur_frag1_size = len(pcd_part1.points)
cur_frag2_size = len(pcd_part2.points)
frag1_size.append(cur_frag1_size)
Expand Down

0 comments on commit 5dc7bc5

Please sign in to comment.