Skip to content

Instantly share code, notes, and snippets.

View soulslicer's full-sized avatar

Raaj soulslicer

  • Carnegie Mellon University Robotics Institute
View GitHub Profile
@soulslicer
soulslicer / mvs-texturing_single_texture.txt
Last active September 4, 2017 02:23
MVS-Texturing Single Texture
diff --git a/libs/tex/calculate_data_costs.cpp b/libs/tex/calculate_data_costs.cpp
index d56cb3e..2024204 100644
--- a/libs/tex/calculate_data_costs.cpp
+++ b/libs/tex/calculate_data_costs.cpp
@@ -184,7 +184,7 @@ calculate_face_projection_infos(mve::TriangleMesh::ConstPtr mesh,
if (viewing_angle < 0.0f || viewing_direction.dot(view_to_face_vec) < 0.0f)
continue;
- if (std::acos(viewing_angle) > MATH_DEG2RAD(75.0f))
+ if (std::acos(viewing_angle) > MATH_DEG2RAD(89.0f))
@soulslicer
soulslicer / iai_kinect_opencv3_fix.txt
Last active July 17, 2017 05:58
iai_kinect_opencv3_fix
diff --git a/kinect2_registration/CMakeLists.txt b/kinect2_registration/CMakeLists.txt
index 14002b6..53f12f6 100644
--- a/kinect2_registration/CMakeLists.txt
+++ b/kinect2_registration/CMakeLists.txt
@@ -1,11 +1,12 @@
cmake_minimum_required(VERSION 2.8.3)
project(kinect2_registration CXX)
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBT_USE_DOUBLE_PRECISION -Wall")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBT_USE_DOUBLE_PRECISION -Wall -fno-exceptions")
@soulslicer
soulslicer / rl-patch-callback-collision-dist.diff
Created August 2, 2017 06:09
rl-patch-callback-collision-dist.diff
diff --git a/src/rl/hal/CMakeLists.txt b/src/rl/hal/CMakeLists.txt
index a21695b..d7704d3 100644
--- a/src/rl/hal/CMakeLists.txt
+++ b/src/rl/hal/CMakeLists.txt
@@ -2,7 +2,7 @@ project(rlhal)
find_package(Atidaq)
find_package(Comedi)
-find_package(Libdc1394)
+#find_package(Libdc1394)
@soulslicer
soulslicer / py-faster-rcnn-caffe_fix.diff
Created August 14, 2017 04:02
Py Faster RCNN Caffe Fix
diff --git a/caffe-fast-rcnn b/caffe-fast-rcnn
index 0dcd397..cdddca3 160000
--- a/caffe-fast-rcnn
+++ b/caffe-fast-rcnn
@@ -1 +1 @@
-Subproject commit 0dcd397b29507b8314e252e850518c5695efbb83
+Subproject commit cdddca3ad7967dbd80cc660b45fd4347c60e380e-dirty
diff --git a/lib/datasets/factory.py b/lib/datasets/factory.py
index 8c3fdb8..56dd3f5 100644
--- a/lib/datasets/factory.py
@soulslicer
soulslicer / ubuntu-nvidia-instructions
Created August 22, 2017 15:49
ubuntu-nvidia-instructions
# Disbale Nouveau driver and reboot (In safe mode if needed)
sudo sh -c "echo 'blacklist nouveau' >> /etc/modprobe.d/blacklist.conf"
sudo update-initramfs -u
sudo reboot
# Download drivers
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/375.20/NVIDIA-Linux-x86_64-375.20.run
wget https://developer.nvidia.com/compute/cuda/8.0/prod/local_installers/cuda_8.0.44_linux-run
# Remove the xorg file
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.BACKUP
# Go to CMD and Stop lightdm
@soulslicer
soulslicer / deep_learning.py
Last active February 16, 2020 21:37
Deep-Learning-ANN
# CODE BASED ON http://www.deepideas.net/about-me/
import numpy as np
import matplotlib.pyplot as plt
from queue import Queue
import time
# A dictionary that will map operations to gradient functions
_gradient_registry = {}
@soulslicer
soulslicer / fail.cpp
Created February 17, 2018 01:15
OpenGL Thread fail
class Renderer{
public:
GLFWwindow* window_slave;
GLuint fb, rbc, rbd, pbo;
struct Vertex{
GLfloat position[3];
GLfloat normal[3];
GLfloat texcoord[2];
};
# import sys
# sys.path.insert(0, 'python')
# import caffe
# caffe.set_mode_cpu()
# solver = caffe.SGDSolver('solver.prototxt')
# solver.net.params['lstm1'][2].data[15:30]=5
# import numpy as np
# a = np.arange(0,32,0.01)
# d = 0.5*np.sin(2*a) - 0.05 * np.cos( 17*a + 0.8 ) + 0.05 * np.sin( 25 * a + 10 ) - 0.02 * np.cos( 45 * a + 0.3)
name: "LSTM"
input: "data"
# T = 320 time_steps, N = 1 streams, 1-D data
input_shape { dim: 320 dim: 1 dim: 1}
input: "clip"
input_shape { dim: 320 dim: 1 }
input: "label"
input_shape { dim: 320 dim: 1 }
layer {
Testsssss