File size: 584 Bytes
d1434a9 c3a0765 d1434a9 c3a0765 d1434a9 c3a0765 d1434a9 c3a0765 d1434a9 c3a0765 d1434a9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import os
import json
import numpy as np
def load_json_flat(filename):
"""
Load a JSON file from the project root (flat structure).
"""
file_path = os.path.join(os.path.dirname(__file__), filename)
with open(file_path, 'r') as f:
return json.load(f)
def compute_euclidean_distance(p1, p2):
"""
Simple Euclidean distance between two points.
"""
return np.linalg.norm(np.array(p1) - np.array(p2))
# Additional utility functions (if any) should be updated to remove SMPL-X specific logic.
# For brevity, only core utilities are shown here.
|