pdDuduzin/ESP32-CAM_Autonomous_Line-Following_Car_Dataset
Viewer • Updated • 9.12k • 324 • 1
How to use pdDuduzin/ESP32-CAM_Autonomous_Line-Following_Car_Model with Keras:
# Available backend options are: "jax", "torch", "tensorflow".
import os
os.environ["KERAS_BACKEND"] = "jax"
import keras
model = keras.saving.load_model("hf://pdDuduzin/ESP32-CAM_Autonomous_Line-Following_Car_Model")
Quantized steering model used by an autonomous line-following car built with an ESP32-CAM and an ESP32 DevKit.
96 x 96 x 1 grayscale image.-1 (maximum left) to +1 (maximum right).modelo_linha.tflite: quantized deployment model.modelo_linha.h: C header embedded in the ESP32-CAM firmware.modelo_linha.keras: original Keras model.training_manifest.json: training configuration, session split and hashes.conversion_manifest.json: quantization configuration, validation metrics and hashes.avaliacao_val.json: validation report.historico_treino.png and precisao_val.png: training and validation plots.For the INT8 model on the validation split:
0.25850.11450.537295.81%These offline metrics do not guarantee stable driving. Performance is sensitive to lighting, reflections, track appearance, camera position and conditions that differ from the training data.
Copy modelo_linha.h to firmware/esp32cam_autonomous/modelo_linha.h, compile the autonomous firmware and upload it to the ESP32-CAM. The header in this release has SHA-256 f835b35dae58bbae79324b01cc249774e020db102483add12ce391a6d3fae751.