Imported from https://github.com/eldar/pose-tensorflow