ccv

A Modern Computer Vision Library

View the Project on GitHub liuliu/ccv

lib/ccv_convnet.c

This is a implementation of deep convolutional networks mainly for image recognition and object detection.

ccv_convnet_new

ccv_convnet_new(int use_cwc_accel, ccv_size_t input, ccv_convnet_layer_param_t params[], int count)

Create a new (deep) convolutional network with specified parameters. ccv only supports convolutional layer (shared weights), max pooling layer, average pooling layer, full connect layer and local response normalization layer.

return: A new deep convolutional network structs

ccv_convnet_layer_param_t

ccv_convnet_input_t

ccv_convnet_type_t

ccv_convnet_verify

int ccv_convnet_verify(ccv_convnet_t *convnet, int output)

Verify the specified parameters make sense as a deep convolutional network.

return: 0 if the given deep convolutional network making sense.

ccv_convnet_supervised_train

void ccv_convnet_supervised_train(ccv_convnet_t *convnet, ccv_array_t *categorizeds, ccv_array_t *tests, const char *filename, ccv_convnet_train_param_t params)

Start to train a deep convolutional network with given parameters and data.

ccv_convnet_train_param_t

ccv_convnet_layer_train_param_t

ccv_convnet_layer_sgd_param_t

ccv_convnet_encode

void ccv_convnet_encode(ccv_convnet_t *convnet, ccv_dense_matrix_t **a, ccv_dense_matrix_t **b, int batch)

Use a convolutional network to encode an image into a compact representation.

ccv_convnet_classify

void ccv_convnet_classify(ccv_convnet_t *convnet, ccv_dense_matrix_t **a, int symmetric, ccv_array_t **ranks, int tops, int batch)

Use a convolutional network to classify an image into categories.

ccv_convnet_read

ccv_convnet_read(int use_cwc_accel, const char *filename)

Read a convolutional network that persisted on the disk.

ccv_convnet_write

void ccv_convnet_write(ccv_convnet_t *convnet, const char *filename, ccv_convnet_write_param_t params)

Write a convolutional network to a disk.

ccv_convnet_write_param_t

ccv_convnet_compact

void ccv_convnet_compact(ccv_convnet_t *convnet)

Free up temporary resources of a given convolutional network.

ccv_convnet_free

void ccv_convnet_free(ccv_convnet_t *convnet)

Free up the memory of a given convolutional network.

‹  back 

comments powered by Disqus