@Frank
I used tutorial:
Command (0_import_model.sh) WORKS:
$convert_tflite \
--tflite-mode model/lite-model_movenet_singlepose_thunder_3.tflite \
--net-output ${NAME}.json \
--data-output ${NAME}.data
Command (1_quantize_model.sh) ERROR:
$tensorzone \
--action quantization \
--dtype float32 \
--source text \
--source-file data/validation_tf.txt \
--channel-mean-value '128 128 128 128' \
--reorder-channel '0 1 2' \
--model-input ${NAME}.json \
--model-data ${NAME}.data \
--quantized-dtype asymmetric_affine-u8 \
--quantized-rebuild
Error:
Traceback (most recent call last):
File "tensorflow/python/framework/op_def_library.py", line 470, in _apply_op_helper
File "tensorflow/python/framework/ops.py", line 1499, in convert_to_tensor
File "tensorflow/python/ops/resource_variable_ops.py", line 1909, in _dense_var_to_tensor
File "tensorflow/python/ops/resource_variable_ops.py", line 1322, in _dense_var_to_tensor
ValueError: Incompatible type conversion requested to type 'int64' for variable of type 'int32'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tensorzonex.py", line 445, in <module>
File "tensorzonex.py", line 386, in main
File "acuitylib/app/tensorzone/quantization.py", line 176, in run
File "acuitylib/app/tensorzone/quantization.py", line 116, in _run_quantization
File "acuitylib/app/tensorzone/workspace.py", line 184, in _setup_graph
File "acuitylib/app/tensorzone/graph.py", line 59, in generate
File "acuitylib/acuitynetbuilder.py", line 327, in build
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 358, in build_layer
File "acuitylib/acuitynetbuilder.py", line 393, in build_layer
File "acuitylib/layer/acuitylayer.py", line 306, in compute_tensor
File "acuitylib/layer/math_binary_op.py", line 129, in compute_out_tensor
File "tensorflow/python/util/dispatch.py", line 201, in wrapper
File "tensorflow/python/ops/math_ops.py", line 1408, in floordiv
File "tensorflow/python/ops/gen_math_ops.py", line 3817, in floor_div
File "tensorflow/python/framework/op_def_library.py", line 506, in _apply_op_helper
TypeError: Input 'y' of 'FloorDiv' Op has type int32 that does not match type int64 of argument 'x'.