Skip to content

Instantly share code, notes, and snippets.

View gbpcosta's full-sized avatar

Gabriel de Barros Paranhos da Costa gbpcosta

View GitHub Profile
def read_binary_blob(filename):
#
# Read binary blob file from C3D
# INPUT
# filename : input filename.
#
# OUTPUT
# s : a 1x5 matrix indicates the size of the blob
# which is [num channel length height width].
# blob : a 5-D tensor size num x channel x length x height x width