I see. I tried the export command on docker container but the engine file did not generate by the following command.
!lprnet export --gpu_index=$GPU_INDEX -m $USER_EXPERIMENT_DIR/experiment_dir_unpruned/weights/lprnet_epoch-24.tlt \
-k $KEY \
-e $SPECS_DIR/tutorial_spec.txt \
-o $USER_EXPERIMENT_DIR/export/lprnet_epoch-24.etlt \
--data_type fp32 \
--engine_file $USER_EXPERIMENT_DIR/export/lprnet_epoch-24.engine
Using TensorFlow backend.
WARNING:tensorflow:Deprecation warnings have been disabled. Set TF_ENABLE_DEPRECATION_WARNINGS=1 to re-enable them.
Using TensorFlow backend.
2021-07-26 08:04:12,033 [INFO] iva.common.export.keras_exporter: Using input nodes: ['image_input']
2021-07-26 08:04:12,033 [INFO] iva.common.export.keras_exporter: Using output nodes: ['tf_op_layer_ArgMax', 'tf_op_layer_Max']
2021-07-26 08:04:12,033 [INFO] iva.lprnet.utils.spec_loader: Merging specification from /workspace/data/lprnet/specs/tutorial_spec.txt
The ONNX operator number change on the optimization: 132 -> 61
2021-07-26 08:04:23,676 [INFO] keras2onnx: The ONNX operator number change on the optimization: 132 -> 61
Traceback (most recent call last):
File "/opt/tlt/.cache/dazel/_dazel_tlt/2b81a5aac84a1d3b7a324f2a7a6f400b/execroot/ai_infra/bazel-out/k8-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/lprnet/scripts/export.py", line 215, in <module>
File "/opt/tlt/.cache/dazel/_dazel_tlt/2b81a5aac84a1d3b7a324f2a7a6f400b/execroot/ai_infra/bazel-out/k8-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/lprnet/scripts/export.py", line 142, in main
File "/opt/tlt/.cache/dazel/_dazel_tlt/2b81a5aac84a1d3b7a324f2a7a6f400b/execroot/ai_infra/bazel-out/k8-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/lprnet/scripts/export.py", line 211, in run_export
File "/opt/tlt/.cache/dazel/_dazel_tlt/2b81a5aac84a1d3b7a324f2a7a6f400b/execroot/ai_infra/bazel-out/k8-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/common/export/keras_exporter.py", line 371, in export
TypeError: set_data_preprocessing_parameters() got an unexpected keyword argument 'image_mean'
Regarding to another thread, you explained that we could ignore this error. But it seems that it failed to create this engine file by this command.
If you have any question, please let me know.
Best regards
Kaka