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 / mac_patch.txt
Created May 21, 2019 15:02
Mac Patch OpenCL Caffe
diff --git a/cmake/Modules/FindvecLib.cmake b/cmake/Modules/FindvecLib.cmake
index 7459f623..9c5ee818 100644
--- a/cmake/Modules/FindvecLib.cmake
+++ b/cmake/Modules/FindvecLib.cmake
@@ -12,13 +12,17 @@ endif()
set(__veclib_include_suffix "Frameworks/vecLib.framework/Versions/Current/Headers")
-find_path(vecLib_INCLUDE_DIR vecLibTypes.h
+exec_program(xcode-select ARGS -print-path OUTPUT_VARIABLE CMAKE_XCODE_DEVELOPER_DIR)
Testsssss
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 {
# 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)
@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];
};
@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 / 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 / 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 / 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 / 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")