Skip to content

Instantly share code, notes, and snippets.

View xinshuoweng's full-sized avatar
🏠
Working from home

Xinshuo Weng xinshuoweng

🏠
Working from home
View GitHub Profile
@xinshuoweng
xinshuoweng / Chamfer_Distance_Pytorch.py
Created April 23, 2019 14:04 — forked from WangZixuan/Chamfer_Distance_Pytorch.py
Use Pytorch to calculate Chamfer distance
import torch
def chamfer_distance_without_batch(p1, p2, debug=False):
'''
Calculate Chamfer Distance between two point sets
:param p1: size[1, N, D]
:param p2: size[1, M, D]
:param debug: whether need to output debug info
@xinshuoweng
xinshuoweng / .tmux.conf
Created October 24, 2016 14:40 — forked from Rangozhang/.tmux.conf
A vim-friendly tmux config
# change prefix to Ctrl-a (like in gnu-screen)
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# start with window 1 (instead of 0)
set -g base-index 1