some errors
Hi @hqt567 Thanks for reporting the issue.

Can you provide the information regarding the steps you have followed and the tutorial you have referred?

Is it from www.tensorflow.org?

Thanks. Thank You
I am based on the following problems in the middle of the tutorial
Is it from  https://www.espressif.com/zh-hans/news/ESP32_meet_TensorFlow @hqt567 The TFLite for Microcontrollers codebase hasbeen moved to a [stand-alone github repository](https://github.com/tensorflow/tflite-micro).

Please refer to the hello world example [here](https://github.com/tensorflow/tflite-micro/tree/main/tensorflow/lite/micro/examples/hello_world) for TFlite Micro. 

Also, please refer to this [example](https://github.com/espressif/tflite-micro-esp-examples/tree/master/examples/hello_world) for hello world on ESP32.

Thanks. Thank you, I will try again and give feedback。 
@hqt567  Could you please let us know if the issue still persists.

Feel free to close the issue if the it is resolved. Thanks!

 I still can't use the TensorFlow example to directly generate the HelloWorld example that can be used by esp32. Later, I tried to use esp-idf to directly deploy the tflite-micro-esp-examples/examples/hello_world/ example but the following problems occurred when using idf.py build

CMake Error at D:/exeespidf/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/build.cmake:245 (message):
  Failed to resolve component 'esp-nn'.
Call Stack (most recent call first):
  D:/exeespidf/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/build.cmake:287 (__build_resolve_and_add_req)
  D:/exeespidf/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/build.cmake:288 (__build_expand_requirements)
  D:/exeespidf/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/build.cmake:574 (__build_expand_requirements)
  D:/exeespidf/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/project.cmake:440 (idf_build_process)
  CMakeLists.txt:4 (project)


-- Configuring incomplete, errors occurred!
See also "D:/exeespidf/Espressif/frameworks/esp-idf-v5.0.1/tflite-micro-esp-examples/examples/hello_world/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1, output of the command is in the d:\exeespidf\espressif\frameworks\esp-idf-v5.0.1\tflite-micro-esp-examples\examples\hello_world\build\log\idf_py_stderr_output_37188 and d:\exeespidf\espressif\frameworks\esp-idf-v5.0.1\tflite-micro-esp-examples\examples\hello_world\build\log\idf_py_stdout_output_37188 Secondly, as a beginner, I don't know the detailed steps to deploy the TensorFlow lite model to the esp32

I would appreciate it if you could guide me with some tutorials.Thank You. Hi @hqt567 Thanks for the information.

Could you please post this issue in [espressif](https://github.com/espressif/tflite-micro-esp-examples/issues) repo for faster resolution.

Please refer to the examples for using tflite micro [here](https://www.tensorflow.org/lite/microcontrollers#explore_the_examples). Also tensorflow has [TensorFlow Lite for Microcontrollers Experiments](https://experiments.withgoogle.com/collection/tfliteformicrocontrollers) features work by developers combining Arduino and TensorFlow to exxamples and tools.

For esp32, you can refer to the espressif official examples [here](https://github.com/espressif/tflite-micro-esp-examples/tree/master/examples)

Thanks.

 Thank you. I have solved my problem with your help, deployed the esp official HelloWorld model to the board.really appreciate your help.

I want to know if there are other models of tflite micro that can be deployed on esp32, such as OCR recognition. I want to try to run models other than the templates provided by espressif official on esp32, such as some OCR models, but I don’t know. Know if tflite micro is ok, and how to do it.


Thanks again for your help.
 Hi @hqt567, glad it helped.

You can check few lite example available in https://www.tensorflow.org/lite/examples and try them on esp32. Also, you can check tensorflow hub https://tfhub.dev/s?deployment-format=lite which provides pretrained lite models for different use cases.

Feel free to close the issue if it is resolved.

Thanks. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59883">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59883">No</a>

I try to generate the ESP32 example project, get the generated tfmicro library and example model, in the Tensorflow directory, run:
make -f tensorflow/lite/micro/tools/make/Makefile TARGET=esp generate_hello_world_esp_project


bash: /c/Users/lenovo/.profile: is a directory

lenovo@LAPTOP-9T3UKCR6 MINGW64 /d/Embedded_deep_learning/ESP32/tensorflow (master)
$ make -f tensorflow/lite/micro/tools/make/Makefile TARGET=esp generate_hello_world_esp_project
tensorflow/lite/micro/tools/make/downloads/flatbuffers already exists, skipping the download.
tensorflow/lite/micro/tools/make/downloads/kissfft already exists, skipping the download.
tensorflow/lite/micro/tools/make/downloads/pigweed already exists, skipping the download.
process_begin: CreateProcess(D:\NewProgram\Git\Git\usr\bin\sh.exe, D:/NewProgram/Git/Git/usr/bin/sh.exe -c "python3 tensorflow/lite/micro/tools/make/specialize_files.py --base_files \"tensorflow/lite/micro/flatbuffer_utils.cc tensorflow/lite/micro/micro_log.cc tensorflow/lite/micro/micro_interpreter.cc tensorflow/lite/micro/system_setup.cc tensorflow/lite/micro/all_ops_resolver.cc tensorflow/lite/micro/micro_context.cc tensorflow/lite/micro/mock_micro_graph.cc tensorflow/lite/micro/micro_graph.cc tensorflow/lite/micro/micro_time.cc tensorflow/lite/micro/micro_allocation_info.cc tensorflow/lite/micro/recording_micro_allocator.cc tensorflow/lite/micro/micro_utils.cc tensorflow/lite/micro/micro_profiler.cc tensorflow/lite/micro/micro_string.cc tensorflow/lite/micro/micro_allocator.cc tensorflow/lite/micro/debug_log.cc tensorflow/lite/micro/fake_micro_context.cc tensorflow/lite/micro/micro_resource_variable.cc tensorflow/lite/micro/test_helpers.cc tensorflow/lite/micro/memory_helpers.cc tensorflow/lite/micro/test_helper_custom_ops.cc tensorflow/lite/micro/arena_allocator/recording_single_arena_buffer_allocator.cc tensorflow/lite/micro/arena_allocator/non_persistent_arena_buffer_allocator.cc tensorflow/lite/micro/arena_allocator/single_arena_buffer_allocator.cc tensorflow/lite/micro/arena_allocator/persistent_arena_buffer_allocator.cc tensorflow/lite/micro/memory_planner/non_persistent_buffer_planner_shim.cc tensorflow/lite/micro/memory_planner/greedy_memory_planner.cc tensorflow/lite/micro/memory_planner/linear_memory_planner.cc tensorflow/lite/micro/tflite_bridge/op_resolver_bridge.cc tensorflow/lite/micro/tflite_bridge/flatbuffer_conversions_bridge.cc tensorflow/lite/micro/tflite_bridge/micro_error_reporter.cc tensorflow/lite/allocation.cc tensorflow/lite/allocation_test.cc tensorflow/lite/arena_planner.cc tensorflow/lite/arena_planner_test.cc tensorflow/lite/c/common_internal.cc tensorflow/lite/c/c_api_for_testing.cc tensorflow/lite/c/c_api_opaque.cc tensorflow/lite/c/c_api_opaque_internal.cc tensorflow/lite/c/c_api_signature_runner_test.cc tensorflow/lite/c/c_test.c tensorflow/lite/c/test_util.cc tensorflow/lite/core/api/error_reporter.cc tensorflow/lite/core/api/error_reporter_test.cc tensorflow/lite/core/api/flatbuffer_conversions.cc tensorflow/lite/core/api/flatbuffer_conversions_test.cc tensorflow/lite/core/api/op_resolver.cc tensorflow/lite/core/api/op_resolver_internal_test.cc tensorflow/lite/core/api/op_resolver_test.cc tensorflow/lite/core/api/tensor_utils.cc tensorflow/lite/core/async/async_signature_runner.cc tensorflow/lite/core/async/async_signature_runner_test.cc tensorflow/lite/core/async/async_subgraph.cc tensorflow/lite/core/async/async_subgraph_test.cc tensorflow/lite/core/async/backend_async_kernel_interface.cc tensorflow/lite/core/async/backend_async_kernel_interface_test.cc tensorflow/lite/core/async/c/task.cc tensorflow/lite/core/async/c/task_test.cc tensorflow/lite/core/async/interop/attribute_map_internal.cc tensorflow/lite/core/async/interop/attribute_map_internal_test.cc tensorflow/lite/core/async/interop/c/attribute_map.cc tensorflow/lite/core/async/interop/c/attribute_map_test.cc tensorflow/lite/core/async/interop/c/constants.cc tensorflow/lite/core/async/interop/c/types.cc tensorflow/lite/core/async/interop/c/types_test.cc tensorflow/lite/core/async/interop/reconcile_fns.cc tensorflow/lite/core/async/interop/reconcile_fns_test.cc tensorflow/lite/core/async/interop/variant.cc tensorflow/lite/core/async/interop/variant_test.cc tensorflow/lite/core/async/task_internal.cc tensorflow/lite/core/async/task_internal_test.cc tensorflow/lite/core/async/testing/test_backend.cc tensorflow/lite/core/c/builtin_op_data_test.cc tensorflow/lite/core/c/common.cc tensorflow/lite/core/c/common_test.cc tensorflow/lite/core/c/c_api.cc tensorflow/lite/core/c/c_api_experimental.cc tensorflow/lite/core/c/c_api_experimental_test.cc tensorflow/lite/core/c/c_api_test.cc tensorflow/lite/core/experimental/acceleration/configuration/c/gpu_plugin.cc tensorflow/lite/core/experimental/acceleration/configuration/c/gpu_plugin_test.cc tensorflow/lite/core/experimental/acceleration/configuration/c/nnapi_plugin.cc tensorflow/lite/core/experimental/acceleration/configuration/c/nnapi_plugin_test.cc tensorflow/lite/core/experimental/acceleration/configuration/c/xnnpack_plugin.cc tensorflow/lite/core/experimental/acceleration/configuration/c/xnnpack_plugin_test.cc tensorflow/lite/core/experimental/acceleration/configuration/delegate_registry.cc tensorflow/lite/core/experimental/acceleration/configuration/stable_delegate_registry.cc tensorflow/lite/core/experimental/acceleration/configuration/stable_delegate_registry_test.cc tensorflow/lite/core/interpreter.cc tensorflow/lite/core/interpreter_builder.cc tensorflow/lite/core/interpreter_experimental.cc tensorflow/lite/core/kernels/register.cc tensorflow/lite/core/model_builder.cc tensorflow/lite/core/model_test.cc tensorflow/lite/core/shims/c/shims_test_util.cc tensorflow/lite/core/shims/jni/jni_utils.cc tensorflow/lite/core/subgraph.cc tensorflow/lite/core/subgraph_test.cc tensorflow/lite/core/tools/verifier.cc tensorflow/lite/core/tools/verifier_internal.cc tensorflow/lite/core/tools/verifier_internal_test.cc tensorflow/lite/core/tools/verifier_test.cc tensorflow/lite/create_op_resolver_with_builtin_ops.cc tensorflow/lite/create_op_resolver_with_selected_ops.cc tensorflow/lite/delegates/coreml/builders/activation_layer_builder.cc tensorflow/lite/delegates/coreml/builders/add_op_builder.cc tensorflow/lite/delegates/coreml/builders/concatenation_op_builder.cc tensorflow/lite/delegates/coreml/builders/convolution_op_builder.cc tensorflow/lite/delegates/coreml/builders/dummy_op_builder.cc tensorflow/lite/delegates/coreml/builders/fully_connected_op_builder.cc tensorflow/lite/delegates/coreml/builders/hardswish_op_builder.cc tensorflow/lite/delegates/coreml/builders/mul_op_builder.cc tensorflow/lite/delegates/coreml/builders/op_builder.cc tensorflow/lite/delegates/coreml/builders/pad_op_builder.cc tensorflow/lite/delegates/coreml/builders/pooling_layer_builder.cc tensorflow/lite/delegates/coreml/builders/reshape_op_builder.cc tensorflow/lite/delegates/coreml/builders/resize_bilinear_op_builder.cc tensorflow/lite/delegates/coreml/builders/softmax_op_builder.cc tensorflow/lite/delegates/coreml/builders/threshold_layer_builder.cc tensorflow/lite/delegates/coreml/builders/util.cc tensorflow/lite/delegates/coreml/builders/util_test.cc tensorflow/lite/delegates/delegate_test.cc tensorflow/lite/delegates/delegate_test_util.cc tensorflow/lite/delegates/external/external_delegate.cc tensorflow/lite/delegates/flex/allowlisted_flex_ops.cc tensorflow/lite/delegates/flex/allowlisted_flex_ops_test.cc tensorflow/lite/delegates/flex/buffer_map.cc tensorflow/lite/delegates/flex/buffer_map_test.cc tensorflow/lite/delegates/flex/buffer_map_util.cc tensorflow/lite/delegates/flex/delegate.cc tensorflow/lite/delegates/flex/delegate_data.cc tensorflow/lite/delegates/flex/delegate_data_test.cc tensorflow/lite/delegates/flex/delegate_symbol.cc tensorflow/lite/delegates/flex/delegate_test.cc tensorflow/lite/delegates/flex/java/src/main/native/flex_delegate_jni.cc tensorflow/lite/delegates/flex/kernel.cc tensorflow/lite/delegates/flex/kernel_test.cc tensorflow/lite/delegates/flex/test_util.cc tensorflow/lite/delegates/flex/tflite_subgraph_execute.cc tensorflow/lite/delegates/flex/util.cc tensorflow/lite/delegates/flex/util_test.cc tensorflow/lite/delegates/gpu/api.cc tensorflow/lite/delegates/gpu/cl/api.cc tensorflow/lite/delegates/gpu/cl/buffer.cc tensorflow/lite/delegates/gpu/cl/buffer_test.cc tensorflow/lite/delegates/gpu/cl/cl_arguments.cc tensorflow/lite/delegates/gpu/cl/cl_arguments_test.cc tensorflow/lite/delegates/gpu/cl/cl_command_queue.cc tensorflow/lite/delegates/gpu/cl/cl_context.cc tensorflow/lite/delegates/gpu/cl/cl_device.cc tensorflow/lite/delegates/gpu/cl/cl_device_test.cc tensorflow/lite/delegates/gpu/cl/cl_event.cc tensorflow/lite/delegates/gpu/cl/cl_image_format.cc tensorflow/lite/delegates/gpu/cl/cl_kernel.cc tensorflow/lite/delegates/gpu/cl/cl_memory.cc tensorflow/lite/delegates/gpu/cl/cl_operation.cc tensorflow/lite/delegates/gpu/cl/cl_program.cc tensorflow/lite/delegates/gpu/cl/default/recordable_queue.cc tensorflow/lite/delegates/gpu/cl/default/util.cc tensorflow/lite/delegates/gpu/cl/egl_sync.cc tensorflow/lite/delegates/gpu/cl/environment.cc tensorflow/lite/delegates/gpu/cl/gl_interop.cc tensorflow/lite/delegates/gpu/cl/gpu_api_delegate.cc tensorflow/lite/delegates/gpu/cl/inference_context.cc tensorflow/lite/delegates/gpu/cl/kernels/add_test.cc tensorflow/lite/delegates/gpu/cl/kernels/cast_test.cc tensorflow/lite/delegates/gpu/cl/kernels/cl_test.cc tensorflow/lite/delegates/gpu/cl/kernels/concat_test.cc tensorflow/lite/delegates/gpu/cl/kernels/converter.cc tensorflow/lite/delegates/gpu/cl/kernels/convolution_transposed_3x3_test.cc tensorflow/lite/delegates/gpu/cl/kernels/convolution_transposed_3x3_thin_test.cc tensorflow/lite/delegates/gpu/cl/kernels/convolution_transposed_4x4_test.cc tensorflow/lite/delegates/gpu/cl/kernels/convolution_transposed_test.cc tensorflow/lite/delegates/gpu/cl/kernels/convolution_transposed_thin_test.cc tensorflow/lite/delegates/gpu/cl/kernels/conv_constants_test.cc tensorflow/lite/delegates/gpu/cl/kernels/conv_generic_test.cc tensorflow/lite/delegates/gpu/cl/kernels/conv_weights_converter_test.cc tensorflow/lite/delegates/gpu/cl/kernels/cumsum_test.cc tensorflow/lite/delegates/gpu/cl/kernels/depthwise_conv_3x3_test.cc tensorflow/lite/delegates/gpu/cl/kernels/depthwise_conv_test.cc tensorflow/lite/delegates/gpu/cl/kernels/elementwise_test.cc tensorflow/lite/delegates/gpu/cl/kernels/fully_connected_test.cc tensorflow/lite/delegates/gpu/cl/kernels/gather_test.cc tensorflow/lite/delegates/gpu/cl/kernels/lstm_full_test.cc tensorflow/lite/delegates/gpu/cl/kernels/lstm_test.cc tensorflow/lite/delegates/gpu/cl/kernels/max_unpooling_test.cc tensorflow/lite/delegates/gpu/cl/kernels/mean_stddev_normalization_test.cc tensorflow/lite/delegates/gpu/cl/kernels/one_hot_test.cc tensorflow/lite/delegates/gpu/cl/kernels/padding_test.cc tensorflow/lite/delegates/gpu/cl/kernels/pooling_test.cc tensorflow/lite/delegates/gpu/cl/kernels/prelu_test.cc tensorflow/lite/delegates/gpu/cl/kernels/quantize_and_dequantize_test.cc tensorflow/lite/delegates/gpu/cl/kernels/reduce_test.cc tensorflow/lite/delegates/gpu/cl/kernels/relu_test.cc tensorflow/lite/delegates/gpu/cl/kernels/resampler_test.cc tensorflow/lite/delegates/gpu/cl/kernels/reshapex4_test.cc tensorflow/lite/delegates/gpu/cl/kernels/reshape_test.cc tensorflow/lite/delegates/gpu/cl/kernels/resize_test.cc tensorflow/lite/delegates/gpu/cl/kernels/select_v2_test.cc tensorflow/lite/delegates/gpu/cl/kernels/softmax1x1_test.cc tensorflow/lite/delegates/gpu/cl/kernels/softmax_test.cc tensorflow/lite/delegates/gpu/cl/kernels/space_to_depth_test.cc tensorflow/lite/delegates/gpu/cl/kernels/split_test.cc tensorflow/lite/delegates/gpu/cl/kernels/strided_slice_test.cc tensorflow/lite/delegates/gpu/cl/kernels/tile_test.cc tensorflow/lite/delegates/gpu/cl/kernels/transpose_test.cc tensorflow/lite/delegates/gpu/cl/kernels/winograd_test.cc tensorflow/lite/delegates/gpu/cl/opencl_wrapper.cc tensorflow/lite/delegates/gpu/cl/program_cache.cc tensorflow/lite/delegates/gpu/cl/qcom_thin_filter.cc tensorflow/lite/delegates/gpu/cl/tensor.cc tensorflow/lite/delegates/gpu/cl/tensor_test.cc tensorflow/lite/delegates/gpu/cl/tensor_type_util.cc tensorflow/lite/delegates/gpu/cl/testing/delegate_testing.cc tensorflow/lite/delegates/gpu/cl/testing/gpu_model_test.cc tensorflow/lite/delegates/gpu/cl/testing/internal_api_samples.cc tensorflow/lite/delegates/gpu/cl/testing/memory_sharing_sample.cc tensorflow/lite/delegates/gpu/cl/testing/performance_profiling.cc tensorflow/lite/delegates/gpu/cl/util.cc tensorflow/lite/tools/versioning/op_version_test.cc tensorflow/lite/tools/versioning/runtime_version.cc tensorflow/lite/tools/versioning/runtime_version_test.cc tensorflow/lite/type_to_tflitetype_test.cc tensorflow/lite/util.cc tensorflow/lite/util_test.cc\" --specialize_directory tensorflow/lite/micro/esp", ...) failed.
...........
make: tensorflow/lite/micro/tools/make/Makefile:585: pipe: No such file or directory
tensorflow/lite/micro/tools/make/Makefile:594: *** Error with specialize_files.py .  Stop.

lenovo@LAPTOP-9T3UKCR6 MINGW64 /d/Embedded_deep_learning/ESP32/tensorflow (master)
$
I got the following error, I don't know how to solve the source of the error, hope I can get some valuable advice from you

Thank you