01 making Caffe release
Caffe provides the makefile command to make a release version of Linux
When you are finished compiling Caffe Pycaffe Matcaffe, run make Distribue to create the release version of Caffe. Run under the Caffe root directory:
Make Distribue
The results of the operation are as follows:
# add Proto cp-r Src/caffe/proto distribute/# Add include cp-r include Distribute/mkdir-p DISTRIBUTE/INCLUDE/CAFFE/PR Oto CP. build_release/src/caffe/proto/caffe.pb.h Distribute/include/caffe/proto # Add tool and example binaries CP. Build _release/tools/upgrade_net_proto_binary.bin. Build_release/tools/device_query.bin. Build_release/tools/finetune_ Net.bin. Build_release/tools/upgrade_solver_proto_text.bin. Build_release/tools/net_speed_benchmark.bin. Build_ Release/tools/test_net.bin. Build_release/tools/convert_imageset.bin. Build_release/tools/train_net.bin. Build_ Release/tools/compute_image_mean.bin. Build_release/tools/extract_features.bin. build_release/tools/upgrade_net_ Proto_text.bin. Build_release/tools/caffe.bin distribute/bin CP. Build_release/examples/siamese/convert_mnist_ Siamese_data.bin. Build_release/examples/cpp_classification/classification.bin. build_release/examples/mnist/ Convert_mnist_data.bin. Build_release/examples/cifar10/convert_cifar_data.bin Distribute/bin
# Add libraries CP. BUILD_RELEASE/LIB/LIBCAFFE.A distribute/lib install-m 644. BUILD_RELEASE/LIB/LIBCAFFE.SO.1.0.0-RC3 Distribute/lib CD distribute/lib; Rm-f libcaffe.so; Ln-s libcaffe.so.1.0.0-rc3 libcaffe.so # Add python-it ' s not the standard, indeed ... cp-r python Distribute/python
02 Release version content
Run tree./distribute/View all the contents of the release version Caffe/distribute directory:
[Strange Code is RC4, compile result libcaffe.so.1.0.0-rc3]
./distribute/├──bin│├──caffe.bin│├──classification.bin│├──compute_image_mean.bin│├──convert_cifar_da Ta.bin│├──convert_imageset.bin│├──convert_mnist_data.bin│├──convert_mnist_siamese_data.bin│├──device_q uery.bin│├──extract_features.bin│├──finetune_net.bin│├──net_speed_benchmark.bin│├──test_net.bin│├─ ─train_net.bin│├──upgrade_net_proto_binary.bin│├──upgrade_net_proto_text.bin│└──upgrade_solver_proto_text. Bin├──include│└──caffe│├──blob.hpp│├──caffe.hpp│├──common.hpp│├──data_transform Er.hpp│├──filler.hpp│├──internal_thread.hpp│├──layer_factory.hpp│├──layer.hpp│ ├──layers││├──absval_layer.hpp││├──accuracy_layer.hpp││├──argmax_layer.hpp││ ├──base_conv_layer.hpp││├──base_data_layer.hpp││├──batch_norm_layer.hpp││├──batch_r Eindex_layer.hpp│ │├──bias_layer.hpp││├──bnll_layer.hpp││├──concat_layer.hpp││├──contrastive_loss_l ayer.hpp││├──conv_layer.hpp││├──crop_layer.hpp││├──cudnn_conv_layer.hpp││├─ ─cudnn_lcn_layer.hpp││├──cudnn_lrn_layer.hpp││├──cudnn_pooling_layer.hpp││├──cudnn_re Lu_layer.hpp││├──cudnn_sigmoid_layer.hpp││├──cudnn_softmax_layer.hpp││├──cudnn_tanh_la yer.hpp││├──data_layer.hpp││├──deconv_layer.hpp││├──dropout_layer.hpp││├── Dummy_data_layer.hpp││├──eltwise_layer.hpp││├──elu_layer.hpp││├──embed_layer.hpp│ │├──euclidean_loss_layer.hpp││├──exp_layer.hpp││├──filter_layer.hpp││├──flatten
_layer.hpp││├──hdf5_data_layer.hpp││├──hdf5_output_layer.hpp││├──hinge_loss_layer.hpp ││├──im2col_lAyer.hpp││├──image_data_layer.hpp││├──infogain_loss_layer.hpp││├──inner_product_layer. Hpp││├──input_layer.hpp││├──log_layer.hpp││├──loss_layer.hpp││├──lrn_layer . Hpp││├──lstm_layer.hpp││├──memory_data_layer.hpp││├──multinomial_logistic_loss_layer. Hpp││├──mvn_layer.hpp││├──neuron_layer.hpp││├──parameter_layer.hpp││├──poo Ling_layer.hpp││├──power_layer.hpp││├──prelu_layer.hpp││├──python_layer.hpp││ ├──recurrent_layer.hpp││├──reduction_layer.hpp││├──relu_layer.hpp││├──reshape_layer . hpp││├──rnn_layer.hpp││├──scale_layer.hpp││├──sigmoid_cross_entropy_loss_layer.hpp│ │├──sigmoid_layer.hpp││├──silence_layer.hpp││├──slice_layer.hpp││├──softmax_ layer.hpp││├──softmax_loss_layer.hpp││├──split_layer.hpp││├──spp_layer.hpp││├──tanh_layer.hpp│ │├──threshold_layer.hpp││├──tile_layer.hpp││└──window_data_layer.hpp│├──net.hpp│ ├──parallel.hpp│├──proto││└──caffe.pb.h│├──sgd_solvers.hpp│├──solver_factor y.hpp│├──solver.hpp│├──syncedmem.hpp│├──test││├──test_caffe_main.hpp││└─ ─test_gradient_check_util.hpp│└──util│├──benchmark.hpp│├──blocking_queue.hpp│ ├──cudnn.hpp│├──db.hpp│├──db_leveldb.hpp│├──db_lmdb.hpp│├──device_
Alternate.hpp│├──format.hpp│├──gpu_util.cuh│├──hdf5.hpp│├──im2col.hpp │├──insert_splits.hpp│├──io.hpp│├──math_functions.hpp│├──mkl_alternate. Hpp│├──nccl. hpp│├──rng.hpp│├──signal_handler.h│└──upgrade_proto.hpp├──lib│├──libcaffe.a
│├──libcaffe.so-Libcaffe.so.1.0.0-rc3│└──libcaffe.so.1.0.0-rc3├──proto│└──caffe.proto└──python ├──caffe│├──_caffe.cpp│├──_caffe.so│├──classifier.py│├──classifier.pyc│├── Coord_map.py│├──detector.py│├──detector.pyc│├──draw.py│├──draw.pyc│├──imagene T││└──ilsvrc_2012_mean.npy│├──__init__.py│├──__init__.pyc│├──io.py│├──io.p Yc│├──net_spec.py│├──net_spec.pyc│├──proto││├──caffe_pb2.py││├──caffe_p b2.pyc││├──__init__.py││└──__init__.pyc│├──pycaffe.py│├──pycaffe.pyc│└── test│├──test_coord_map.py│├──test_io.py│├──test_layer_type_list.py│├── Test_net.py│ ├──test_net_spec.py│├──test_python_layer.py│├──test_python_layer_with_param_str.py│ └──test_solver.py├──classify.py├──cmakelists.txt├──detect.py├──draw_net.py├──requirements. txt└──train.py directories, 163 files