AxisCommunications / acap-native-sdk-examples

Example code for APIs and features in AXIS Camera Application Platform (ACAP) Native SDK
Apache License 2.0
44 stars 25 forks source link

Model load error on CV25 #264

Open AtsushiYokokawa opened 4 months ago

AtsushiYokokawa commented 4 months ago

Discussed in https://github.com/AxisCommunications/acap-native-sdk-examples/discussions/263

Originally posted by **AtsushiYokokawa** June 26, 2024 The model converted with tensorflow-to-larod-cv25 does not work. Here are the steps I tried. - Environment - PC - OS: Windows 11 Pro (WSL: Ubuntu-20.04) - CPU: 11th Gen Intel(R) Core(TM) i7-11390H @ 3.40GHz 2.92 GHz - RAM: 16.0GB - GPU: Intel IRIS - Docker: Docker Desktop V4.17.0 - CVTool: Ambarella_Toolchain_CNNGen_Basic_2.5.6_20231117 - Camera - Camera: M3086-V - FW: 11.10.83 - Steps - Model conversion ``` docker build --tag tensorflow-to-larod-cv25 --build-arg TRAIN_EPOCHS=1 . docker cp $(docker create tensorflow-to-larod-cv25):/env/training/models/converted_model.tflite ./converted_model.tflite ``` - Compile with CVTool ``` gen_image_list.py -f pics -o dra_image_bin/img_list.txt -ns -e .jpg -c 0 -d 0,0 -r 256,256 -bf dra_image_bin -bo dra_image_bin/dra_bin_list.txt # [gen_image_list] Folder input received: pics # [gen_image_list] Created file: dra_image_bin/img_list.txt # (info) using #30 thread(s) to run imgtobin # [info][#13] Convert 12a768fce3b51894.jpg to 12a768fce3b51894.bin ... Done # [info][ #0] Convert 00ee5d5169b5d94f.jpg to 00ee5d5169b5d94f.bin ... Done # [info][ #5] Convert 027402a2f2de4ffd.jpg to 027402a2f2de4ffd.bin ... Done # [info][ #1] Convert 016782dc5cdbd0ce.jpg to 016782dc5cdbd0ce.bin ... Done # [info][ #7] Convert 042926ab7d9c4922.jpg to 042926ab7d9c4922.bin ... Done # [info][ #2] Convert 01bce5b2dd400f5d.jpg to 01bce5b2dd400f5d.bin ... Done # [info][ #8] Convert 07afa437e2aa458b.jpg to 07afa437e2aa458b.bin ... Done # [info][#10] Convert 09f03d43f0a2a3aa.jpg to 09f03d43f0a2a3aa.bin ... Done # [info][ #9] Convert 07d343487bd82d5a.jpg to 07d343487bd82d5a.bin ... Done # [info][#11] Convert 1186a1ccc9923678.jpg to 1186a1ccc9923678.bin ... Done # [info][ #6] Convert 031ce4a78c6b7331.jpg to 031ce4a78c6b7331.bin ... Done # [info][#14] Convert 12ad6bec64eb4454.jpg to 12ad6bec64eb4454.bin ... Done # [info][ #3] Convert 01f969a887724083.jpg to 01f969a887724083.bin ... Done # [info][ #4] Convert 020c12da1d0ea78c.jpg to 020c12da1d0ea78c.bin ... Done # [info][#17] Convert 15f9857bc6e82d05.jpg to 15f9857bc6e82d05.bin ... Done # [info][#12] Convert 11ee142c27bf2f3e.jpg to 11ee142c27bf2f3e.bin ... Done # [info][#15] Convert 13997536ad9d92ef.jpg to 13997536ad9d92ef.bin ... Done # [info][ #2] Convert 22bc484961df0de7.jpg to 22bc484961df0de7.bin ... Done # [info][ #9] Convert 26742912e6591e49.jpg to 26742912e6591e49.bin ... Done # [info][#10] Convert 24b4f02a4c49cdca.jpg to 24b4f02a4c49cdca.bin ... Done # [info][#20] Convert 2f9a9dac02715200.jpg to 2f9a9dac02715200.bin ... Done # [info][#11] Convert 28bc743ce467c9b2.jpg to 28bc743ce467c9b2.bin ... Done # [info][#13] Convert 164e8d631323dda2.jpg to 164e8d631323dda2.bin ... Done # [info][#17] Convert 345d112cdb3d621c.jpg to 345d112cdb3d621c.bin ... Done # [info][ #9] Convert 43466129aba65f94.jpg to 43466129aba65f94.bin ... Done # [info][#12] Convert 3627ae4bceb27c2b.jpg to 3627ae4bceb27c2b.bin ... Done # [info][#16] Convert 14bb7d41e1cd3b27.jpg to 14bb7d41e1cd3b27.bin ... Done # [info][#14] Convert 2e3eb2b6dbae8ac5.jpg to 2e3eb2b6dbae8ac5.bin ... Done # [info][ #9] Convert 62642779b29a0b0e.jpg to 62642779b29a0b0e.bin ... Done # [info][ #7] Convert 22bb3097d0c0b214.jpg to 22bb3097d0c0b214.bin ... Done # [info][#19] Convert 25d6711130edac64.jpg to 25d6711130edac64.bin ... Done # [info][#21] Convert 39652e445524e644.jpg to 39652e445524e644.bin ... Done # [info][ #5] Convert 1c9c30bbe43ff9b0.jpg to 1c9c30bbe43ff9b0.bin ... Done # [info][#20] Convert 4c746ea68c15eca5.jpg to 4c746ea68c15eca5.bin ... Done # [info][ #0] Convert 1a1e1cadeb581a60.jpg to 1a1e1cadeb581a60.bin ... Done # [info][#15] Convert 3dbf4fea124969b1.jpg to 3dbf4fea124969b1.bin ... Done # [info][#18] Convert 17758ba0e16314b0.jpg to 17758ba0e16314b0.bin ... Done # [info][#12] Convert 63e86e3144157862.jpg to 63e86e3144157862.bin ... Done # [info][ #2] Convert 41527fcf86d8a514.jpg to 41527fcf86d8a514.bin ... Done # [info][ #3] Convert 31e00147edc42d4f.jpg to 31e00147edc42d4f.bin ... Done # [info][#22] Convert 480ebd26b7a58271.jpg to 480ebd26b7a58271.bin ... Done # [info][#11] Convert 4e994da9b3b469f4.jpg to 4e994da9b3b469f4.bin ... Done # [info][#10] Convert 4910a871de86e1b8.jpg to 4910a871de86e1b8.bin ... Done # [info][ #8] Convert 240adfd3be861236.jpg to 240adfd3be861236.bin ... Done # [info][ #6] Convert 2e00b317399caec1.jpg to 2e00b317399caec1.bin ... Done # [info][#23] Convert 57b78de0600a81b6.jpg to 57b78de0600a81b6.bin ... Done # [info][#13] Convert 5cd90e8e164811d6.jpg to 5cd90e8e164811d6.bin ... Done # [info][ #9] Convert 6be3de4724a96551.jpg to 6be3de4724a96551.bin ... Done # [info][#14] Convert 66dbef7ee8f89034.jpg to 66dbef7ee8f89034.bin ... Done # [info][ #1] Convert 216ca4dccf1cf954.jpg to 216ca4dccf1cf954.bin ... Done # [info][ #4] Convert 31ef918ed79d5d08.jpg to 31ef918ed79d5d08.bin ... Done # [info][#17] Convert 5da8d4522ab05160.jpg to 5da8d4522ab05160.bin ... Done # [info][#19] Convert 79b8a886b84d80b8.jpg to 79b8a886b84d80b8.bin ... Done # [info][#18] Convert 926a11c59c25d241.jpg to 926a11c59c25d241.bin ... Done # [info][#16] Convert 659cbdabbdd29fbb.jpg to 659cbdabbdd29fbb.bin ... Done # [info][#24] Convert 59d6bfb423a00030.jpg to 59d6bfb423a00030.bin ... Done # [info][#12] Convert 92966db841989471.jpg to 92966db841989471.bin ... Done # [info][ #5] Convert 7b5e60773867d7c9.jpg to 7b5e60773867d7c9.bin ... Done # [info][#26] Convert 6bbbec6427d1c779.jpg to 6bbbec6427d1c779.bin ... Done # [info][#28] Convert 7d065ba4906a04d1.jpg to 7d065ba4906a04d1.bin ... Done # [info][#15] Convert 8ffbd9f9c3fcf7f2.jpg to 8ffbd9f9c3fcf7f2.bin ... Done # [info][ #7] Convert 72495806a2cc843d.jpg to 72495806a2cc843d.bin ... Done # [info][ #0] Convert 8fcf57e4981084f3.jpg to 8fcf57e4981084f3.bin ... Done # [info][#20] Convert 84bfb64e712bff6c.jpg to 84bfb64e712bff6c.bin ... Done # [info][#27] Convert 72f383044888a700.jpg to 72f383044888a700.bin ... Done # [info][#25] Convert 61a825b2f7217dc2.jpg to 61a825b2f7217dc2.bin ... Done # [info][#29] Convert 8b6b26a50d5ac0f9.jpg to 8b6b26a50d5ac0f9.bin ... Done # [info][ #2] Convert 933bfc62a518cdb5.jpg to 933bfc62a518cdb5.bin ... Done # [info][#28] Convert d7deb0b2baf9182a.jpg to d7deb0b2baf9182a.bin ... Done # [info][ #3] Convert 94581082d109d248.jpg to 94581082d109d248.bin ... Done # [info][#11] Convert 96b3c6bf59fce970.jpg to 96b3c6bf59fce970.bin ... Done # [info][#12] Convert d0de707d2d4506cb.jpg to d0de707d2d4506cb.bin ... Done # [info][#10] Convert 971e6288aedbd1fc.jpg to 971e6288aedbd1fc.bin ... Done # [info][ #8] Convert 9a2fb1c8c2cd684b.jpg to 9a2fb1c8c2cd684b.bin ... Done # [info][#13] Convert a765c610f1de4b17.jpg to a765c610f1de4b17.bin ... Done # [info][ #6] Convert 9ddf1721b22d9854.jpg to 9ddf1721b22d9854.bin ... Done # [info][#14] Convert b52f1effb07482cc.jpg to b52f1effb07482cc.bin ... Done # [info][#21] Convert a6e8c15220967c8d.jpg to a6e8c15220967c8d.bin ... Done # [info][ #7] Convert dd39739bc9f1c2bc.jpg to dd39739bc9f1c2bc.bin ... Done # [info][#20] Convert e6b879016623b763.jpg to e6b879016623b763.bin ... Done # [info][ #3] Convert feaf340b6110ea26.jpg to feaf340b6110ea26.bin ... Done # [info][#23] Convert a5ab8dc35fc11316.jpg to a5ab8dc35fc11316.bin ... Done # [info][#29] Convert f0f9e24867866ffe.jpg to f0f9e24867866ffe.bin ... Done # [info][ #1] Convert b541361f9803fbdc.jpg to b541361f9803fbdc.bin ... Done # [info][#24] Convert cc2eb9cf689ffc43.jpg to cc2eb9cf689ffc43.bin ... Done # [info][#22] Convert 969e22b3683bd4f0.jpg to 969e22b3683bd4f0.bin ... Done # [info][ #9] Convert b1add5e32ded1b6b.jpg to b1add5e32ded1b6b.bin ... Done # [info][#25] Convert f0159732f67d8dc9.jpg to f0159732f67d8dc9.bin ... Done # [info][#28] Convert fb9f80d0b9901906.jpg to fb9f80d0b9901906.bin ... Done # [info][#16] Convert cc05a9f8ad54501f.jpg to cc05a9f8ad54501f.bin ... Done # [info][ #0] Convert dfb9a621cf44ccdb.jpg to dfb9a621cf44ccdb.bin ... Done # [info][#18] Convert c815217fc535053b.jpg to c815217fc535053b.bin ... Done # [info][#26] Convert d6b1d4dfac962ada.jpg to d6b1d4dfac962ada.bin ... Done # [info][ #5] Convert d380f1bd34fa27c3.jpg to d380f1bd34fa27c3.bin ... Done # [info][#17] Convert c580328e55ca9dda.jpg to c580328e55ca9dda.bin ... Done # [info][ #4] Convert b73c6ce3a9a5baf9.jpg to b73c6ce3a9a5baf9.bin ... Done # [info][#19] Convert c7a6100fb32028cb.jpg to c7a6100fb32028cb.bin ... Done # [info][#15] Convert db62fd538c4a1cdd.jpg to db62fd538c4a1cdd.bin ... Done # [info][ #2] Convert fb4aefe1d405df85.jpg to fb4aefe1d405df85.bin ... Done # [info][#27] Convert ee7b34def3f5fb57.jpg to ee7b34def3f5fb57.bin ... Done # [gen_image_list] Folder input received: /home/docker/dra_image_bin # [gen_image_list] Created file: dra_image_bin/dra_bin_list.txt # [gen_image_list] Converted 100 files to binary, saved in /home/docker/dra_image_bin ``` ``` tfparser.py -p converted_model.tflite -o car_human_model -of ./out_car_human_model -isrc "is:1,3,256,256|iq|i:input_1=./dra_image_bin/dra_bin_list.txt|ic:255.00446258|idf:0,0,0,0" -odst "o:Identity|odf:fp32" -odst "o:Identity_1|odf:fp32" -c act-force-fx16,coeff-force-fx16 # 2024-06-26 07:18:36.574819: I tensorflow/stream_executor/platform/default/dso_loader.cc:50] Successfully opened dynamic library libcudart.so.12 # WARNING:tensorflow:Deprecation warnings have been disabled. Set TF_ENABLE_DEPRECATION_WARNINGS=1 to re-enable them. # /usr/local/lib/python3.8/dist-packages/pandas/core/computation/expressions.py:20: UserWarning: Pandas requires version '2.7.3' or newer of 'numexpr' (version '2.7.1' currently installed). # from pandas.core.computation.check import NUMEXPR_INSTALLED # WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation. # WARNING:tensorflow:From /usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/frameworklibs/cv2.basic.2.5.6.0.1245.ubu2004/lib/python3.8/site-packages/frameworklibs/tensorflow/tflite/tf_lite_supported_ops.py:60: The name tf.nn.max_pool is deprecated. Please use tf.nn.max_pool2d instead. # # WARNING:tensorflow:From /usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/frameworklibs/cv2.basic.2.5.6.0.1245.ubu2004/lib/python3.8/site-packages/frameworklibs/tensorflow/tflite/tf_lite_supported_ops.py:60: The name tf.nn.max_pool is deprecated. Please use tf.nn.max_pool2d instead. # # WARNING:tensorflow:From /usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/frameworklibs/cv2.basic.2.5.6.0.1245.ubu2004/lib/python3.8/site-packages/frameworklibs/tensorflow/tflite/tf_lite_supported_ops.py:61: The name tf.nn.avg_pool is deprecated. Please use tf.nn.avg_pool2d instead. # # WARNING:tensorflow:From /usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/frameworklibs/cv2.basic.2.5.6.0.1245.ubu2004/lib/python3.8/site-packages/frameworklibs/tensorflow/tflite/tf_lite_supported_ops.py:61: The name tf.nn.avg_pool is deprecated. Please use tf.nn.avg_pool2d instead. # # WARNING:tensorflow:From /usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/frameworklibs/cv2.basic.2.5.6.0.1245.ubu2004/lib/python3.8/site-packages/frameworklibs/tensorflow/tflite/tf_lite_supported_ops.py:104: The name tf.batch_to_space_nd is deprecated. Please use tf.batch_to_space instead. # # WARNING:tensorflow:From /usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/frameworklibs/cv2.basic.2.5.6.0.1245.ubu2004/lib/python3.8/site-packages/frameworklibs/tensorflow/tflite/tf_lite_supported_ops.py:104: The name tf.batch_to_space_nd is deprecated. Please use tf.batch_to_space instead. # # WARNING:tensorflow:From /usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/frameworklibs/cv2.basic.2.5.6.0.1245.ubu2004/lib/python3.8/site-packages/frameworklibs/tensorflow/tflite/tf_lite_supported_ops.py:105: The name tf.space_to_batch_nd is deprecated. Please use tf.space_to_batch instead. # # WARNING:tensorflow:From /usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/frameworklibs/cv2.basic.2.5.6.0.1245.ubu2004/lib/python3.8/site-packages/frameworklibs/tensorflow/tflite/tf_lite_supported_ops.py:105: The name tf.space_to_batch_nd is deprecated. Please use tf.space_to_batch instead. # # INFO: 06/26/2024 07:18:41.987708 logger.py:372 [TFLite_Parser] Application logs will be written to the log directory: ./logs # INFO: 06/26/2024 07:18:42.127938 tf_lite_v2.py:254 [TFLite_Parser] [MAIN] TFLite model provided by the user: /home/docker/converted_model.tflite # INFO: 06/26/2024 07:18:42.129113 tf_lite_v2.py:255 [TFLite_Parser] [MAIN] List of user output nodes: ['Identity', 'Identity_1'] # INFO: 06/26/2024 07:18:42.130067 tf_lite_v2.py:256 [TFLite_Parser] [MAIN] Do not use quantization data formats: False # INFO: 06/26/2024 07:18:42.131749 tf_lite_v2.py:257 [TFLite_Parser] [MAIN] Invoke Asymmetric adjustement: False # INFO: 06/26/2024 07:18:42.132419 tf_lite_v2.py:258 [TFLite_Parser] [MAIN] Schema file path: /usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/frameworklibs/cv2.basic.2.5.6.0.1245.ubu2004/bin/schema.fbs # INFO: 06/26/2024 07:18:42.132673 tf_lite_v2.py:259 [TFLite_Parser] [MAIN] FLATC executable path: /usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/frameworklibs/cv2.basic.2.5.6.0.1245.ubu2004/bin/flatc # INFO: 06/26/2024 07:18:42.134538 tf_lite_v2.py:260 [TFLite_Parser] [MAIN] Checkpoint path: /home/docker//reconstructed_pb_model/converted_model_ckpt # INFO: 06/26/2024 07:18:42.136037 tf_lite_v2.py:261 [TFLite_Parser] [MAIN] Output protobuf reconstructed: /home/docker//reconstructed_pb_model/converted_model_reconstructed.pb # INFO: 06/26/2024 07:18:42.136290 tf_lite_v2.py:285 [TFLite_Parser] [FLATC EXE] Converting tflite model to JSON file using flatc executable # INFO: 06/26/2024 07:18:43.497503 tf_lite_v2.py:427 [TFLite_Parser] [RECONSTRUCT PROTO] Convert JSON file to protobuf # INFO: 06/26/2024 07:18:43.731525 tf_lite_v2.py:316 [TFLite_Parser] [SET IO NODE] Input of the model: ['input_1'] # INFO: 06/26/2024 07:18:43.731851 tf_lite_v2.py:317 [TFLite_Parser] [SET IO NODE] Output of the model: ['Identity', 'Identity_1'] # 2024-06-26 07:18:43.736630: W tensorflow/stream_executor/platform/default/dso_loader.cc:61] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv22/tv2/release/Amalgam/cv22.basic.2.5.6.0.1245.ubu2004/lib:/usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv22/tv2/release/libvdg/cv22.basic.2.5.6.0.1245.ubu2004/lib:/usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv22/tv2/release/VpRef/cv22.basic.2.5.6.0.1245.ubu2004/lib:/usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv22/tv2/release/Zamboni/cv22.basic.2.5.6.0.1245.ubu2004/lib:/usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/AmbaCnn/cv2.basic.2.5.6.0.1245.ubu2004/lib:/usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/ApfCanon/1.13/x86_64-linux/lib:/usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/LibAmb/1.19/x86_64-linux/lib:/usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/LibApf/1.13/x86_64-linux/lib # 2024-06-26 07:18:43.736839: E tensorflow/stream_executor/cuda/cuda_driver.cc:282] failed call to cuInit: UNKNOWN ERROR (303) # 2024-06-26 07:18:43.737283: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (05ba275a9be5): /proc/driver/nvidia/version does not exist # 2024-06-26 07:18:43.762300: I tensorflow/core/platform/profile_utils/cpu_utils.cc:109] CPU Frequency: 2918410000 Hz # 2024-06-26 07:18:43.763492: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x4671360 initialized for platform Host (this does not guarantee that XLA will be used). Devices: # 2024-06-26 07:18:43.763553: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version # INFO:tensorflow:Froze 54 variables. # INFO: 06/26/2024 07:18:45.354419 graph_util_impl.py:334 [TFLite_Parser] Froze 54 variables. # INFO:tensorflow:Converted 54 variables to const ops. # INFO: 06/26/2024 07:18:45.377763 graph_util_impl.py:394 [TFLite_Parser] Converted 54 variables to const ops. # 2024-06-26 07:18:45.434623: I tensorflow/tools/graph_transforms/transform_graph.cc:318] Applying strip_unused_nodes # 2024-06-26 07:18:45.444534: I tensorflow/tools/graph_transforms/transform_graph.cc:318] Applying fold_constants # 2024-06-26 07:18:45.485948: I tensorflow/tools/graph_transforms/transform_graph.cc:318] Applying remove_nodes # 2024-06-26 07:18:45.489095: I tensorflow/tools/graph_transforms/remove_nodes.cc:78] Skipping replacement for Identity # 2024-06-26 07:18:45.489224: I tensorflow/tools/graph_transforms/remove_nodes.cc:78] Skipping replacement for Identity_1 # 2024-06-26 07:18:45.493166: I tensorflow/tools/graph_transforms/remove_nodes.cc:78] Skipping replacement for Identity # 2024-06-26 07:18:45.493280: I tensorflow/tools/graph_transforms/remove_nodes.cc:78] Skipping replacement for Identity_1 # 2024-06-26 07:18:45.500988: I tensorflow/tools/graph_transforms/transform_graph.cc:318] Applying remove_attribute # 2024-06-26 07:18:45.502429: I tensorflow/tools/graph_transforms/transform_graph.cc:318] Applying strip_unused_nodes # 2024-06-26 07:18:45.504371: I tensorflow/tools/graph_transforms/transform_graph.cc:318] Applying fold_constants # 2024-06-26 07:18:45.511826: I tensorflow/tools/graph_transforms/transform_graph.cc:318] Applying sort_by_execution_order # INFO: 06/26/2024 07:18:45.559772 tf_lite_v2.py:355 [TFLite_Parser] Reconstructed and optmized protobuf can be found here: /home/docker//reconstructed_pb_model/converted_model_reconstructed.pb # WARN: 06/26/2024 07:18:45.560278 tf_lite_v2.py:375 [TFLite_Parser] # TFLite model converted to a frozen protobuf but cannot be validated since loading the TFLite model using Interpreter fails. Please check the version of the TFLite model. # Reconstructed frozen protobuf is saved in the reconstructed_pb_models/ folder. Use the /home/docker//reconstructed_pb_model/converted_model_reconstructed.pb model for porting. # *** (info) importing amba_cnn_py @ /usr/local/amba-cv-tools-basic.2.5.6.0.1245.ubuntu-20.04/cv2/tv2/release/AmbaCnn/cv2.basic.2.5.6.0.1245.ubu2004/python/amba_cnn_py # *** (info) setting project cv22 # opened session 6536 on libambacnn cv2.basic.2.5.6.0.1245.ubu2004 (9322cec*0), at 2024-06-26 07:18:45 # libambacnn session config: target_device = cv22, gpu_id = -1, mode = default, split = False # [info] drc proc time = 157.628 s @ 100 % # [info] drc num frames = 100 # [info] drc proc time = 157.628493 s # [info] drc pproc time = 0.001153 s # [info] drc total time = 290.714981 s # [info] dr2 time = ( 1.515 calc + 1.224 stat) s x 100 frames ``` ``` vas -auto -show-progress out_car_human_model/car_human_model.vas # car_human_model: EXPAND 68 (expansion progress: 100%) # car_human_model: DONE expansion # car_human_model: DONE validation # car_human_model: DONE analyzing # car_human_model: DONE opt # car_human_model: DONE buffering # car_human_model: SPLIT 0 (split progress: 46%) # car_human_model: SPLIT 1 (split progress: 55%) # car_human_model: SPLIT 2 (split progress: 100%) # car_human_model: DONE split # car_human_model: DONE all ``` ``` cavalry_gen -d vas_output -f car_human_model_cavalry.bin # Using cavalry_gen version latest # # Save to file car_human_model_cavalry.bin with file size 3319784. ``` - Test model on CV25 camera ``` larod-client -g ./car_human_model_cavalry2.bin -c ambarella-cvflow -R 10 -w 5 -i '' # 2024-06-26T17:54:07.971 Connecting to larod... # 2024-06-26T17:54:07.981 Connected # 2024-06-26T17:54:08.030 ERROR: When loading model synchronously (-2): Could not load model: Could not initialize net ``` - Resources - https://mega.nz/file/Fnl2mAab#5Pq8zQRyhuKy2X8rWPPSTZt43ma3PpAzleoRDaAB0h0
AtsushiYokokawa commented 4 months ago

As stated in the discussion, it seems that compatibility between AXIS OS and the Ambarella Toolchain has not been ensured.

Please check it.

pataxis commented 4 months ago

Hi @AtsushiYokokawa , thank you for your feedback. We'll get back when we had time to investigate it.