/*
 * Copyright 2019 Xilinx Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
Important:
  ./test_jpeg_facefeature, ./test_performance_facefeature the first param followed must be with model name.
  Valid model name:
    facerec_resnet20 
    facerec_resnet64
    facerec-resnet20_mixed_pt

1, compile

    execute the following command:

        sh build.sh

2, copy the compiled executable file and test image to the development board.

   run the executable file.
    
    sample : ./test_jpeg_facefeature facerec_resnet20 sample_facefeature.jpg
    output : 
  WARNING: Logging before InitGoogleLogging() is written to STDERR
  I0529 02:47:57.092557 32509 process_result.hpp:25] float features :
-0.03125 0.15625 -0.101562 0.273438 -0.015625 -0.0234375 -0.09375 -0.148438 0.125 0.117188 -0.140625 0.109375 -0.148438 0.0859375 0.03125 0.0078125 0.21875 -0.0078125 -0.09375 0.0078125 -0.015625 -0.28125 0.265625 0.1875 0.148438 -0.164062 -0.15625 0.234375 -0.109375 -0.132812 -0.289062 0.257812 0.171875 -0.265625 0.0703125 -0.0234375 0.382812 0.046875 0.109375 0.179688 -0.132812 -0.046875 -0.195312 0.234375 0.101562 -0.132812 0.164062 0.0078125 -0.078125 0.015625 0.0390625 -0.21875 -0.0859375 -0.0625 -0.132812 -0.15625 0.078125 0.195312 -0.09375 -0.125 0.210938 0.203125 -0.0625 0.015625 -0.15625 0.585938 -0.234375 0.429688 -0.078125 -0.078125 -0.101562 0.015625 0.0546875 0.046875 0.132812 -0.242188 -0.257812 -0.03125 0.078125 0.0234375 0.242188 -0.171875 0.359375 -0.101562 -0.109375 0.132812 -0.03125 -0.078125 0.257812 0.28125 0.109375 0.15625 0.015625 0.078125 0.015625 -0.296875 -0.046875 -0.0390625 -0.046875 -0.0078125 0.21875 0.21875 -0.203125 -0.234375 0.0078125 -0.125 0.078125 0.0703125 0.125 0 -0.03125 0.257812 0.0703125 -0.046875 -0.109375 -0.0078125 -0.03125 -0.179688 0.179688 -0.320312 0.15625 0.125 0.140625 0.0390625 -0.015625 0.203125 -0.0078125 0.210938 -0.21875 -0.171875 0.242188 0.242188 -0.046875 0.0625 0.09375 -0.0546875 0.09375 0.109375 -0.320312 0.195312 -0.0703125 -0.0390625 0.0234375 0.1875 0.203125 -0.125 0.15625 0.242188 0.164062 -0.132812 0.0703125 0.234375 -0.34375 0.078125 0.296875 -0.015625 0.0234375 0.015625 0.09375 -0.0546875 -0.0859375 -0.101562 0.0234375 0.0546875 -0.0859375 0.140625 -0.078125 0.015625 -0.109375 -0.0234375 -0.0234375 0.078125 0.0234375 0.148438 0.15625 -0.015625 -0.125 -0.164062 0.3125 -0.25 0.132812 0.0546875 0.21875 0.195312 0 0.148438 0.195312 -0.179688 0.101562 0.148438 0.132812 0.140625 -0.203125 0.109375 0.078125 -0.0078125 0.109375 0.03125 0.179688 -0.21875 0.0234375 0.0859375 -0.0234375 -0.09375 0.226562 0.0703125 -0.09375 -0.03125 -0.132812 -0.195312 0.0703125 -0.257812 0.164062 0.117188 0.335938 0.148438 -0.242188 -0.0703125 -0.242188 0.25 0.0234375 0.046875 -0.0703125 0.203125 -0.40625 -0.0703125 0.0625 0.0703125 0.046875 0.015625 -0.148438 -0.125 -0.390625 -0.0234375 0.242188 -0.0859375 -0.203125 -0.171875 -0.0859375 -0.203125 0.140625 0.117188 -0.265625 0.109375 -0.078125 -0.109375 -0.03125 0.0078125 0.0390625 0.0703125 -0.0703125 0.132812 0.226562 -0.117188 -0.0390625 0.0546875 0.03125 -0.078125 0.25 0.015625 -0.015625 -0.0234375 0.179688 0.132812 -0.03125 -0.15625 0.273438 -0.0078125 0.0546875 -0.132812 -0.296875 0.132812 0.0625 0.0625 0.484375 -0.273438 -0.0078125 -0.015625 0.1875 0.046875 -0.078125 0.328125 -0.101562 0.046875 0.101562 0.0234375 -0.117188 -0.25 -0.421875 0.242188 -0.234375 0.0390625 0.0234375 0.117188 0.0234375 -0.21875 0.0546875 -0.171875 0.0078125 -0.28125 0.0390625 0.382812 -0.117188 0.0078125 0.320312 0.242188 -0.132812 0.171875 0.125 0.140625 -0.0546875 -0.179688 -0.0390625 -0.21875 -0.164062 0.0390625 0.0859375 -0.117188 -0.0625 -0.125 -0.0234375 -0.015625 0.078125 -0.164062 0.117188 0.257812 0.09375 -0.125 -0.0625 -0.210938 0.265625 -0.179688 0.03125 -0.273438 0.164062 -0.429688 -0.0703125 -0.382812 0.421875 -0.0703125 -0.1875 0.148438 -0.179688 -0.0703125 0.03125 0.015625 -0.0234375 -0.28125 -0.0234375 -0.125 0.265625 -0.257812 -0.109375 -0.171875 -0.140625 -0.226562 -0.046875 0.164062 -0.015625 0.0859375 0.21875 -0.078125 -0.1875 -0.125 -0.03125 -0.492188 0.0234375 0.273438 -0.460938 0.148438 -0.132812 0.203125 -0.078125 0.164062 0.242188 0.195312 -0.1875 -0.390625 0.140625 0.203125 0.046875 -0.132812 0.1875 0.015625 0.0234375 0.257812 -0.03125 -0.507812 -0.1875 -0.0703125 0.0546875 0.0390625 -0.25 -0.078125 0.0625 -0.164062 -0.359375 -0.0234375 -0.0390625 0.03125 -0.273438 0.179688 -0.234375 -0.03125 0.171875 0.195312 0 0.445312 0.015625 -0.0390625 0.148438 0 -0.21875 0.195312 0.046875 0.03125 -0.0390625 0.328125 -0.273438 -0.046875 0.046875 0.0625 0.0546875 -0.0390625 -0.0078125 0.375 -0.265625 -0.132812 0.0234375 -0.203125 0.0234375 0.171875 0.0546875 -0.03125 0.078125 -0.296875 0.0078125 0.179688 -0.28125 0.0390625 -0.328125 0.226562 -0.125 0.0390625 -0.0859375 -0.046875 -0.0859375 -0.0703125 0.101562 0.046875 0.148438 0.148438 0.140625 0.320312 -0.046875 -0.125 0.15625 -0.296875 -0.0859375 -0.28125 0.140625 0.015625 -0.140625 0.203125 -0.117188 0.171875 0.0703125 0.109375 -0.0703125 -0.0078125 0.0703125 0.304688 0.046875 -0.34375 0.125 0.0078125 0.140625 0.109375 -0.015625 -0.132812 -0.164062 -0.265625 -0.0078125 -0.234375 0.0703125 -0.210938 0.273438 0.132812 -0.125 0.0703125 0.21875 -0.0546875 0.1875 -0.132812 -0.117188 -0.03125 0.117188 0.101562 -0.226562 0.0546875 -0.0390625 0.0078125 -0.21875 -0.0859375 0.273438 0.195312 0.0859375 0.0859375 0.148438 0.0234375 -0.164062 0.109375 

 
    sample : ./test_jpeg_facefeature facerec_resnet64 sample_facefeature.jpg
    output : 
  WARNING: Logging before InitGoogleLogging() is written to STDERR
  I0529 02:49:26.905248 32510 process_result.hpp:25] float features :
0.0625 0.015625 0.59375 0.1875 -0.125 0.578125 0 0.296875 -0.390625 0.171875 -0.5625 0.109375 -0.1875 0.21875 0.75 0.484375 -0.171875 -0.328125 -0.390625 1.04688 -0.4375 -0.171875 -0.640625 0.890625 0.28125 -0.1875 0.15625 -0.171875 0.09375 -0.046875 0.625 0.9375 0.15625 0.71875 -0.0625 0.0625 0.203125 -0.59375 0.140625 1.1875 -0.328125 0.765625 0.890625 0.59375 -0.203125 0.359375 -0.046875 0 -0.3125 -0.6875 -0.828125 0.59375 0.28125 -0.765625 -0.234375 0.484375 -0.703125 -0.53125 -1.29688 -0.046875 0.90625 0.5625 0.75 0.125 0.953125 0.75 -0.109375 0.4375 0.390625 -0.34375 -0.828125 -0.0625 -0.53125 -0.859375 0.296875 -1.14062 -0.125 0.109375 -0.1875 -0.5625 -0.875 0.203125 -0.390625 0.796875 0.25 0.875 0.796875 0.609375 0.015625 0.25 0.578125 -1.125 0.03125 -0.40625 0.234375 -0.359375 0.65625 0.59375 0.796875 0.265625 0.046875 -0.078125 -0.140625 0.09375 -1.0625 -0.40625 0.703125 0.296875 1.01562 1.10938 -0.296875 0.515625 0.140625 0.109375 -0.5 0 0.078125 -1.34375 -0.828125 0.671875 -0.3125 0.390625 -0.046875 -0.5625 -0.4375 -0.53125 -0.625 0.140625 -0.453125 -0.5 0.109375 -0.0625 -0.34375 0.109375 -0.21875 -0.140625 0.84375 -0.296875 -0.28125 -0.125 -0.21875 1.125 0.421875 0.765625 -0.234375 -0.515625 -0.578125 0.296875 0.4375 -0.140625 -0.9375 -0.0625 0.359375 0.40625 0.09375 -1.01562 -0.015625 0.734375 -1.1875 1.10938 -0.4375 0.546875 -0.34375 -1.32812 1.20312 0 0.90625 0.71875 -1.0625 -0.1875 0.09375 0.03125 0.265625 1.04688 1.23438 -0.3125 0.828125 -0.34375 -0.71875 0.953125 -0.8125 0.8125 0.03125 0.609375 -0.75 -0.078125 0.09375 -0.640625 0.640625 -0.453125 -0.921875 0.09375 0.171875 -0.59375 -0.421875 -0.53125 -0.703125 0.125 0 -0.21875 1 0.421875 -0.234375 -0.078125 0.734375 0.21875 0.1875 -1.23438 0.03125 -0.453125 -0.265625 0.421875 -0.125 0.765625 0.328125 0.421875 -0.875 -0.8125 0.953125 -0.59375 0.859375 0.53125 0.15625 -0.859375 0.296875 0.296875 -0.28125 -0.203125 0.25 0.703125 0.15625 -0.3125 -0.484375 0.25 -0.28125 0.0625 0.15625 -0.875 -0.359375 0.140625 -1.10938 0.265625 -0.375 0.109375 0.265625 0.265625 -0.15625 0.5625 -1.25 -0.203125 0.15625 0.09375 -0.4375 0.171875 0.859375 0.28125 -0.078125 -1.25 -0.4375 1.10938 -0.921875 0.3125 -0.65625 -0.640625 -0.71875 -0.46875 0.40625 0.546875 -0.015625 -0.515625 -0.328125 0.078125 -0.078125 -0.375 0.5 0.140625 0.53125 -0.421875 -0.421875 -0.078125 -0.34375 0.140625 -0.8125 0.03125 0.484375 0.4375 0.53125 -0.171875 0.109375 0.25 0 1.125 0.46875 0.140625 0.5 -0.21875 0.359375 -0.21875 -0.03125 -0.25 0.625 -0.203125 -0.03125 0.734375 0.5625 0.421875 -0.015625 0.046875 0.5 0.296875 0.671875 0.359375 0.59375 0.90625 -0.3125 0.21875 0.046875 -1.1875 -0.265625 0.265625 -1.0625 -0.484375 -0.203125 0.015625 -1.03125 -0.84375 0.140625 -0.109375 0.625 0.765625 -1.07812 -0.1875 0 0.59375 -0.40625 -1.42188 -0.53125 0.09375 -0.25 0.1875 -0.8125 -0.0625 -0.234375 -1.46875 -0.671875 0.40625 -0.125 -0.765625 0.15625 -0.1875 0.25 -0.53125 -0.90625 -0.59375 0.671875 -0.453125 0.25 -0.28125 -0.078125 0.65625 0.4375 -0.203125 -0.3125 -0.0625 0.09375 0.28125 0.9375 0.015625 0.4375 -0.21875 -0.5 0.40625 0.828125 -0.53125 0.28125 -0.515625 1.01562 -0.546875 0.109375 -0.078125 0.65625 -0.21875 -0.203125 -0.703125 -1.40625 -0.125 0.484375 0 -0.71875 0.1875 -0.125 0.640625 0.078125 0.5 -0.234375 0.359375 -0.3125 0.4375 0.546875 -0.265625 -0.9375 -0.671875 0.765625 0.296875 -0.890625 -0.234375 -0.40625 0.015625 0.71875 0.59375 0.6875 0.375 -0.5 0.5 -0.203125 0.453125 -0.203125 -0.375 -0.25 -0.765625 -0.578125 0.765625 0.9375 -0.34375 0.328125 -0.765625 0.34375 -0.484375 1.14062 -0.125 0.578125 -0.484375 0.234375 0.78125 -0.203125 -0.328125 0.609375 -0.90625 -0.078125 0.34375 -0.09375 0.28125 -0.3125 0.5 0.359375 -0.96875 0.3125 -0.46875 -0.09375 0.265625 0.046875 0.796875 -0.5 0.140625 -0.078125 -0.34375 0.53125 1.32812 -1.17188 -0.5 1.39062 1.01562 0.34375 0.8125 0.25 -0.609375 -0.578125 -0.421875 0.765625 1.03125 0.09375 -0.0625 0.03125 0.21875 0.03125 -0.5625 0.4375 1.48438 0.09375 0.546875 0.78125 0.828125 0.328125 -0.4375 0.484375 0.359375 -0.078125 0.078125 0.359375 0.375 -0.015625 -0.046875 -0.15625 0.25 1.28125 1.75 0.1875 -0.8125 -0.484375 -0.140625 0.328125 0.234375 -0.09375 -0.109375 -0.5625 -0.078125 -0.28125 -0.234375 0.03125 0.84375 0.90625 0.078125 
    
    sample : ./test_jpeg_facefeature facerec-resnet20_mixed_pt sample_facefeature.jpg
    output :
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0719 12:23:19.529546 14146 process_result.hpp:25] float features :
-0.125 0.46875 -0.5625 1.25 -0.09375 -0.34375 -0.03125 -0.1875 0.625 -0.15625 0.21875 0.4375 -0.34375 0.65625 0.53125 0.21875 1.1875 0.1875 -0.21875 -0.5 0.15625 -0.5625 0.84375 1.125 0.3125 -0.96875 -0.4375 1.40625 -0.15625 -0.96875 -0.75 0.71875 -0.03125 -0.78125 0.40625 0.03125 0.96875 -0.40625 -0.03125 0.6875 -0.46875 0.1875 -0.28125 0.25 0.8125 -0.625 0.3125 -0.15625 -0.5625 -0.1875 0.125 -0.71875 -0.5625 0.21875 -0.65625 0 -0.0625 1.15625 -0.5625 -0.25 0.5625 1.34375 -0.28125 1.0625 -0.5625 2.125 -0.71875 1.53125 0.09375 -0.21875 -0.90625 0.375 -0.5 0.9375 0.21875 -0.40625 -1.1875 0.09375 0.3125 0.09375 0.5 -0.4375 1.125 -0.59375 -0.6875 0.25 -0.71875 0.15625 0.75 1 0.59375 0.0625 -0.125 0.625 0.53125 -0.59375 -0.03125 -0.53125 -1.03125 0.4375 0.4375 1.625 -0.21875 -1.03125 0.15625 -0.875 0.625 0.3125 0.625 0.5 0.15625 1.65625 0.1875 0.03125 -0.03125 -0.1875 -0.21875 -0.03125 0.875 -1.09375 0.46875 0.40625 0.15625 -0.21875 -0.125 0.375 -0.34375 0.6875 -1.03125 -0.3125 1.40625 0.84375 -0.40625 0.34375 -0.25 -0.28125 -0.21875 0.8125 -0.4375 1.15625 0.125 0.25 0.65625 0.8125 1.53125 -0.15625 0.1875 0.21875 0.0625 -1.59375 0.71875 0.8125 -0.1875 0.5625 0.875 0.09375 0.65625 -0.09375 0.46875 -0.25 -0.0625 -0.15625 -0.09375 1 0.03125 0.875 0.25 -0.125 -0.75 -0.15625 0.09375 -0.125 0.71875 0.625 0.5 0.28125 -0.6875 -0.0625 1.21875 -0.40625 0.8125 0.03125 0.15625 0.625 0.0625 0.21875 0.15625 -0.90625 0.65625 0.53125 0.46875 0.65625 -0.75 0.15625 0.34375 0.125 0.40625 0.3125 0.9375 -0.5625 -0.375 -0.53125 -0.0625 0.09375 1.03125 0.125 -0.3125 -0.15625 -0.78125 -0.03125 0.40625 -1.0625 0.375 0.15625 0.78125 0.84375 -0.71875 -0.5625 -0.25 0.625 0.09375 0.125 0.34375 0.65625 -1.65625 -0.125 0.40625 -0.46875 0.40625 0.09375 -0.1875 -1 -1.3125 -0.71875 0.875 -0.46875 -1.25 -0.25 -0.40625 -0.34375 0.625 0.46875 -0.46875 -0.125 -0.125 -0.25 0.34375 0.34375 1 -0.125 0.21875 0.3125 1.09375 -0.09375 0.40625 0.09375 -0.03125 -0.03125 0.5625 -0.125 0.125 -0.125 1 0.34375 -0.46875 -0.09375 0.5 1.0625 0.0625 -0.0625 -1.125 0.5 0.3125 -0.3125 1.21875 -1.3125 0.09375 -0.25 0.625 -0.34375 -0.3125 0.875 0 0.34375 0.4375 0.40625 -0.71875 -0.625 -1.25 0.6875 -1.0625 0.625 0.53125 -0.03125 0.125 -1 -0.1875 -0.96875 0.3125 -0.9375 0.28125 1.46875 -0.4375 -0.3125 0.90625 1.5 0.25 0.75 0.34375 0.4375 0.15625 -0.90625 -0.3125 -0.46875 -0.6875 0.21875 0.59375 -1.0625 0.375 -0.65625 -0.0625 -0.15625 0.40625 0.09375 0.34375 1.0625 1.0625 -0.46875 -0.125 -1.21875 0.84375 -0.84375 0.59375 -0.75 0.5 -1.625 -0.4375 -1.03125 0.96875 0.21875 -1.15625 0.6875 -0.40625 -0.1875 -0.1875 -0.53125 0.53125 0 -0.46875 -0.34375 0.65625 -0.40625 0.15625 -0.28125 -0.09375 -0.84375 -0.3125 0.5625 0.90625 0.25 0.78125 -0.75 0.25 -0.40625 0.09375 -0.90625 -0.0625 0.96875 -1.71875 0.21875 -0.40625 0.25 0.3125 0.9375 0.375 0.4375 -0.625 -1.6875 0.90625 1.03125 -0.1875 -0.78125 1.0625 0.28125 -0.1875 0.96875 -0.625 -1.96875 -0.71875 -0.1875 0.375 0.59375 -1.28125 -0.53125 0.28125 -0.03125 -0.9375 0.1875 0.59375 0.375 -0.34375 0.25 -0.96875 -0.6875 0.78125 0.53125 0.03125 1.71875 0.25 0.28125 -0.1875 -0.15625 -0.46875 0.34375 0.28125 -0.09375 0.1875 0.84375 -0.875 -0.09375 0.21875 0.875 0.6875 -0.3125 -0.59375 1.125 -0.84375 -0.53125 0.28125 -0.90625 -0.25 0.46875 -0.3125 0 0.875 -0.8125 0.1875 0.28125 -1.28125 0.3125 -0.09375 0.875 -0.40625 -0.0625 -0.15625 -0.4375 -0.0625 -0.4375 0.3125 0.40625 0.21875 1.09375 -0.03125 1.40625 0.5625 -0.25 0.90625 -0.84375 -0.5 -0.46875 0.59375 -0.15625 -1.125 0.78125 -0.1875 0.6875 0.28125 0.5625 -0.03125 -0.5625 0 0.40625 0 -1.46875 0.40625 -0.1875 0.9375 -0.21875 -0.34375 0 -0.65625 -0.9375 -0.25 -0.375 0.40625 -0.78125 0.875 -0.25 0.1875 0 0.09375 0.09375 1.09375 -0.71875 -0.125 -0.3125 0.5625 0.34375 -0.3125 0.28125 -0.09375 0.21875 -0.78125 -0.0625 1.21875 0.15625 0 0.21875 0.84375 -0.03125 -0.28125 0.5
