MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / process_directory

Function process_directory

eval_code/recons/relpose/evo_utils.py:468–480  ·  view source on GitHub ↗
(directory)

Source from the content-addressed store, hash-verified

466
467
468def process_directory(directory):
469 results = []
470 for root, _, files in os.walk(directory):
471 if files is not None:
472 files = sorted(files)
473 for file in files:
474 if file.endswith("_metric.txt"):
475 file_path = os.path.join(root, file)
476 seq_name = file.replace("_eval_metric.txt", "")
477 ate, rpe_trans, rpe_rot = extract_metrics(file_path)
478 results.append((seq_name, ate, rpe_trans, rpe_rot))
479
480 return results
481
482
483def calculate_averages(results):

Callers

nothing calls this directly

Calls 2

extract_metricsFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected