Author: Prabhu Balakrishnan
-
Running Word2vec in Nvidia GPU
Word2vec is a amazing tool which automatically picks up the relationships with words or other way of saying is similarities. Unfortunately there is only CPU implementation available with Google for now. I was running GoogleNews-2012 (1GB) text corpus using the tool and it took about 12 hours to generate vectors. Running the same supporting Nvidia…
-
Detection of Facial eye points with k-means clustering
K-means is a clustering algorithm which can be applied on various machine learning problems. Lets take a look on how we apply kmeans on grayscale faces to detect coordinates of left and right eye centers. We first slice the eyes from the face reducing the dimensionality, then we apply gabor filter to have a maximum…
-
Applying Gabor filter on faces using OpenCV
Gabor filters are in the heart of computer vision problems. I decided to play around with gabor filters mainly because i heard it gives good response to orientation and pixel intensities. Here we write code in python and use opencv. Let us see how we can apply gabor filter to 36 grayscale facial images (taken…
-
Face detection of grayscale images in OpenCV
If you have grayscale images given to you in CSV format (from kaggle), it is very easy to dump the images into numpy and then directly pass the numpy array to openCV to detect faces, eye, mouth or whatever using the haar cascades. The tutorial in opencv website http://docs.opencv.org/trunk/doc/py_tutorials/py_objdetect/py_face_detection/py_face_detection.html only shows the example of color images…
-
Facial keypoints extraction using Caffe
Facial keypoints extraction is a challenging problem and deep learning is a hot topic and much explored area. Caffe is a popular deep learning library implementing deep learning on large datasets. Caffe is much much faster and convolutional neural networks seems to perform much better with images and can run in GPU and CPU. Running…
-
Previous day and month date functions in PHP
If you are looking how to pull up the previous day or month from current date, it is very easy to do it in php. Look at the following pieces of code. This code will do the necessary conversions from one format to another. $old_date = “05-Dec-2015”; $new_date = date(“Y-m-d”, strtotime($old_date) ); $prev_date = date(“Y-m-d”,…
-
Qt5widgets cmake error in MacOS X
I was so annoyed with Qt5widgets issues compiling with cmake. After fixing it couple of times, i am posting it for others. $ cmake . CMake Warning at src/CMakeLists.txt:6 (message): The CULA environment variables are not defined. RAN and RBF networks will not be build. CMake Error at src/apps/CMakeLists.txt:22 (find_package): By not providing “FindQt5Widgets.cmake” in…
-
libtool issue with configure in Mac
I was trying to compile the FANN library with OpenCL, in my mac running yosemite, i get this error. i installed Xcode, command line tools still configure fails at libtool command config.status: executing libtool commands sed: ./ltmain.sh: No such file or directory sed: ./ltmain.sh: No such file or directory mv: rename libtoolT to libtool:…
-
Running a neural network in GPU
I was so passionate about neural networks and always wanted a fast library. I found FANN library c is the fastest NN library, so that i could train a neural network in GPU. I finally managed to find libcudann library (extension of FANN) which runs on Nvidia GPU with CUDA. I tested on my ubuntu…
-
Fixing libtool not found error
I was compiling fann library under opencl, got stuck on this. $ ./configure config.status: executing libtool commands sed: ./ltmain.sh: No such file or directory sed: ./ltmain.sh: No such file or directory mv: rename libtoolT to libtool: No such file or directory cp: libtoolT: No such file or directory chmod: libtool: No such file or directory…