/*
 * 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.
 */
### How to use it ###
compile: 
sh build.sh

run: ./demo_classification /usr/share/vitis_ai_library/models/resnet50/resnet50.elf \
    resnet50_0 demo_classification.jpg

result:
score[109] = 0.983166
score[973] = 0.00850606
score[955] = 0.00515918
score[397] = 0.00069822
score[390] = 0.000543774
bye

run in cloud: 
  ./demo_classification /usr/share/vitis_ai_library/models/resnet50/resnet50.xmodel \
    resnet50_0 demo_classification.jpg demo_classification1.jpeg \
    demo_classification2.jpeg  demo_classification3.jpeg  demo_classification4.jpeg 

result:
batch_index 0 image_name demo_classification.jpg
score[109] = 0.983166
score[973] = 0.00850606
score[955] = 0.00515918
score[397] = 0.00069822
score[390] = 0.000543774
batch_index 1 image_name demo_classification1.jpeg
score[757] = 0.999484
score[660] = 0.000335289
score[675] = 0.000158379
score[654] = 1.30006e-05
score[705] = 4.78265e-06
batch_index 2 image_name demo_classification2.jpeg
score[109] = 0.983166
score[973] = 0.00850606
score[955] = 0.00515918
score[397] = 0.00069822
score[390] = 0.000543774
batch_index 3 image_name demo_classification3.jpeg
score[286] = 0.999514
score[290] = 0.00012335
score[291] = 0.00012335
score[292] = 9.6065e-05
score[287] = 9.6065e-05
batch_index 4 image_name demo_classification4.jpeg
score[370] = 0.990866
score[371] = 0.00857267
score[380] = 0.000258872
score[373] = 0.000157014
score[382] = 9.52338e-05
bye

