Skip to content

Instantly share code, notes, and snippets.

View jnhwkim's full-sized avatar

Jin-Hwa Kim jnhwkim

View GitHub Profile
@sergeyprokudin
sergeyprokudin / chamfer_distance.py
Created April 30, 2020 14:04
Vanilla Chamfer distance computation in NumPy
import numpy as np
from sklearn.neighbors import NearestNeighbors
def chamfer_distance(x, y, metric='l2', direction='bi'):
"""Chamfer distance between two point clouds
Parameters
----------
x: numpy array [n_points_x, n_dims]
#!/bin/bash
###################################
# Usage: sudo ./installer.sh [os] #
###################################
OS=$1;
UBUNTU="ubuntu";
#############