parses the trained .caffemodel file

    filepath: /path/to/trained-model.caffemodel

    returns: layers

def parse_caffemodel(file_path):
    """
    parses the trained .caffemodel file

    filepath: /path/to/trained-model.caffemodel

    returns: layers
    """
    f = open(file_path, 'rb')
    contents = f.read()

    net_param = caffe_pb2.NetParameter()
    net_param.ParseFromString(contents)

    layers = find_layers(net_param)
    return layers