Machine Learning

Human detection and Pose Estimation with Deep Learning for Sport Analysis

Pose estimation and tracking human is one the key step in sports analysis. Here is in this work I used openpose for analysis of player in a Bundesliga game HSV Hamburg vs Bayer München. Warning: the video might be disturbing for HSV fans 🙂   Original Video Analyzed Video Original Video Analyzed Video Original Video Analyzed Video Original Video …

Human detection and Pose Estimation with Deep Learning for Sport Analysis Read More »

Deep Dreams with Caffe on Ubuntu 16.04

First, install caffe as being explained in my other post here. Googlenet Model Download the bvlc_googlenet.caffemodel from https://github.com/BVLC/caffe/tree/master/models/bvlc_googlenet and put it in caffe/models/bvlc_googlenet/ PIP

IPython, scipy, Jupyter, protobuf, scikit-image Always install in the user space with –user

Running  jupyter notebook

open  a new notebook and paste the following into it and correct the “model_path” and img = np.float32(PIL.Image.open(‘/home/behnam/Downloads/fractal.jpg’)) according to your setup. …

Deep Dreams with Caffe on Ubuntu 16.04 Read More »

Installing NVIDIA DIGIST Ubuntu 16.04

Prerequisite

Protobuf 3

caffe Install caffe as being explained in my other post here. DIGITS visit https://github.com/NVIDIA/DIGITS/ Dependencies

# Install repo packages

Building DIGITS

Open in the browser: http://localhost:5000/

Installing Caffe on Ubuntu 16.04

CUDA Toolkit 9.1 visit https://developer.nvidia.com/cuda-downloads and download the correct deb file then:

Basic Linear Algebra Subprograms (BLAS)

Protocol Buffers

or you can install protobuf v3  it from source:

Lightning Memory-Mapped Database

LevelDB

Hdf5

gflags

glog

Snappy

Caffe

Breadth-first search (BFS) and Depth-first search (DSF) Algorithm with Python and C++

Python Implementation BFS traverse:

DFS traverse:

C++ Implementation

 

Examples of Dynamic Programming with C++ and Matlab

In this tutorial, I will give you examples of using dynamic programming for solving the following problems: 1)Minimum number of coins for summing X.

  2)The most (least) costly path on a grid (dynamic time warping).

  3)Levenshtein edit distance.

  4)Seam Carving. I have written a tutorial on that …

Examples of Dynamic Programming with C++ and Matlab Read More »

Seam Carving Algorithm for Content-Aware Image Resizing with Matlab Code

Seam carving is an algorithm for resizing images while keeping the most prominent and conspicuous pixels in the image. The important pixels in an image are usually those who are located over horizontal or vertical edges, so to throw away some pixels we first find horizontal and vertical edges and store their magnitude as pixel …

Seam Carving Algorithm for Content-Aware Image Resizing with Matlab Code Read More »

Hierarchical Clustring in python

Hierarchical Clustering is a method of clustering which build a hierarchy of clusters. It could be Agglomerative or Divisive. Agglomerative: At the first step, every item is a cluster, then clusters based on their distances are merged and form bigger clusters till all data is in one cluster (Bottom Up). The complexity is \( O (n^2log(n) ) \). Divisive: At the beginning, …

Hierarchical Clustring in python Read More »