This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conda install pytorch=1.8.1 torchvision cudatoolkit=10.1 -c pytorch -c conda-forge | |
export CXX=g++-7 | |
export CUDA_HOME=/usr # verify CUDA location via $CUDA_HOME/nvcc --version | |
pip install -U git+https://github.com/NVIDIA/MinkowskiEngine -v --no-deps --install-option="--blas_include_dirs=${CONDA_PREFIX}/include" --install-option="--blas=openblas" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from sklearn.metrics.pairwise import euclidean_distances | |
import matplotlib.pyplot as plt | |
import tqdm | |
def sample_spherical(npoints, ndim=3): | |
vec = np.random.randn(npoints, ndim) | |
vec /= np.linalg.norm(vec, axis = 1, keepdims = True) | |
return vec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Sudharshan Suresh, Wei Dong, Nov 2019 | |
# Given input ordered point set, regularize the polygon | |
import torch | |
import torch.nn as nn | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Online | |
---------------------- | |
Draw on PDFs - https://www.pdfzorro.com/EDIT/FUNCTIONS/_all.php?show=draw | |
Drawing - lucidchart.com | |
Drawing - draw.io, https://sketch.io/sketchpad/ | |
GIF create/edit - https://ezgif.com/crop | |
latex - overleaf.com | |
latex table maker - https://www.tablesgenerator.com/ | |
latex equation editor - https://www.codecogs.com/latex/eqneditor.php | |
latex equations to png - http://latex2png.com/ |