Skip to content

Instantly share code, notes, and snippets.

View Manojbhat09's full-sized avatar

Manoj Bhat Manojbhat09

View GitHub Profile
@Manojbhat09
Manojbhat09 / convert_argo_to_kitti.py
Created April 29, 2020 19:29
Convert Argoverse format to KITTI
# Converting the ply files into the bin files
import sys
sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages')
print("removed ros")
import pyntcloud
import numpy as np
import glob
import pdb
@Manojbhat09
Manojbhat09 / VTK_build_in_ec2_ubuntu.sh
Last active May 3, 2020 02:16
Building VTK is sometimes difficult, and finding the right flags is cumbersome. This is a general quick build gist
sudo apt install cmake libavcodec-dev libavformat-dev libavutil-dev libboost-dev libdouble-conversion-dev libeigen3-dev libexpat1-dev libfontconfig-dev libfreetype6-dev libgdal-dev libglew-dev libhdf5-dev libjpeg-dev libjsoncpp-dev liblz4-dev liblzma-dev libnetcdf-dev libnetcdf-cxx-legacy-dev libogg-dev libpng-dev libpython3-dev libqt5opengl5-dev libqt5x11extras5-dev libsqlite3-dev libswscale-dev libtheora-dev libtiff-dev libxml2-dev libxt-dev qtbase5-dev qttools5-dev zlib1g-dev
git clone https://gitlab.kitware.com/vtk/vtk.git VTK
cd vtk
git checkout v8.2.0
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/vtk-inst \
-DCMAKE_INSTALL_RPATH=$HOME/vtk-inst \
-DVTK_Group_Qt=ON \
-DVTK_QT_VERSION=5 \
@Manojbhat09
Manojbhat09 / helpful_links_for_building_packages.txt
Created May 3, 2020 01:43
Helpful links for building packages (Opencv)
@Manojbhat09
Manojbhat09 / Install-open3d.sh
Created May 29, 2020 19:57
Install open3d on Debian or Ubuntu on GCP/EC2
# Follow http://www.open3d.org/docs/release/compilation.html
git clone --recursive https://github.com/intel-isl/Open3D
cd open3d
util/scripts/install-deps-ubuntu.sh
mkdir build
cd build
cmake -DPYTHON_EXECUTABLE=/path/to/my/python ..
make -j5
make install
@Manojbhat09
Manojbhat09 / Install-cuda.sh
Last active July 2, 2020 12:31
How to install cuda on Azure
# Replace ubuntu1604 with ubuntu1804
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /" > /etc/apt/sources.list.d/cuda.list'
sudo apt update
sudo apt install cuda-10-0 --yes
# Cudnn: download library from https://developer.nvidia.com/rdp/cudnn-download
# Extract the tgz file
sudo cp cuda/include/cudnn.h /usr/local/cuda-10.0/include/
sudo cp cuda/lib64/libcudnn* /usr/local/cuda-10.0/lib64/ -r
@Manojbhat09
Manojbhat09 / Graphical-viewer-vnc
Created July 2, 2020 14:06
Solves graphical issues with vnc remote desktop
sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
sudo apt-get update
sudo apt-get upgrade
@Manojbhat09
Manojbhat09 / Running-python-on-browser
Created August 11, 2020 09:45
Js replacement resources for Deep learning applications
Brython
Skulpt
PyPy.js
Transcrypt
Pyodide
Good Summary of current methods:
https://stackoverflow.com/questions/30155551/python-in-browser-how-to-choose-between-brython-pypy-js-skulpt-and-transcrypt

Credits: Zuxin Liu https://github.com/liuzuxin

Ubuntu 18.04 Environment Configuration (from beginning to giving up)

1. Install Ubuntu

  • make sure that the /swap partition is twice larger than the computer memory.
  • 25GB is enough for root /.
  • The /boot partition should be use as 'EFI system partition'. 1GB is enough.
  • The / partition should be of 'primary' type. Others should be 'logical'.
@Manojbhat09
Manojbhat09 / bash-commands.sh
Last active September 24, 2020 06:30
Basic ubunu bash commands
# Delete all but the most recent X files in bash
ls -tp | grep -v '/$' | tail -n +6 | xargs -I {} rm -- {}
# +1 keeps 0 files, +4 keeps top 3 files
# https://stackoverflow.com/questions/25785/delete-all-but-the-most-recent-x-files-in-bash
@Manojbhat09
Manojbhat09 / Current_Paper_Reading.md
Last active September 30, 2020 05:16
Pointcloud object detection papers

-Learning to Optimally Segment Point Clouds. https://arxiv.org/pdf/1912.04976.pdf

-Fast 3-D Urban Object Detection on Streaming Point Clouds. https://projet.liris.cnrs.fr/imagine/pub/proceedings/ECCV-2014/workshops/w15/Paper%202.pdf

-StarNet: Targeted Computation for Object Detection in Point Clouds. https://arxiv.org/pdf/1908.11069.pdf

-What You See is What You Get: Exploiting Visibility for 3D Object Detection. https://arxiv.org/pdf/1912.04986.pdf

-Streaming Object Detection for 3-D Point Clouds https://arxiv.org/pdf/2005.01864.pdf