-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yolov5 failed to work in esp32cam #13517
Comments
👋 Hello @Sadek-21, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution. If this is a 🐛 Bug Report, please provide a minimum reproducible example (MRE) to help us debug it. This could include your code snippets, configuration details, and steps to reproduce the issue. Without more specifics, it’s challenging to identify the problem. For hardware limitations like those encountered with ESP32-Cam, please ensure to provide details about your deployment approach and environment. If this is a custom training ❓Question, kindly share more context, including:
Additionally, YOLOv5 is designed to run most efficiently on devices with high compute capabilities (like GPUs or TPUs). Microcontrollers like the ESP32-Cam may not handle the computational requirements of YOLOv5 effectively because of limited processing power, resulting in slow performance. For such use cases, you might also consider exploring model quantization or smaller versions of the model designed explicitly for edge devices. RequirementsPython>=3.8.0 with all requirements.txt installed, and PyTorch>=1.8. To get started: git clone https://github.com/ultralytics/yolov5 # clone
cd yolov5
pip install -r requirements.txt # install EnvironmentsYOLOv5 runs in various computational environments. However, for environments with limited resources, explore lightweight inference solutions or optimized deployments. See below for verified environments where YOLOv5 runs efficiently:
For highly constrained environments like microcontrollers, look into options such as converting the YOLOv5 model to ONNX or TensorFlow Lite for edge deployments to optimize performance. StatusIf this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify the correct operation of YOLOv5 training, validation, inference, export and benchmarks on macOS, Windows, and Ubuntu every 24 hours and on every commit. ⚡ This is an automated response. An Ultralytics engineer will review your issue and provide further assistance soon. Let us know if you have additional details to share in the meantime! 😊 |
@Sadek-21 while YOLOv5 is effective on laptops, deploying it on an ESP32-CAM presents significant challenges due to the device's limited processing power and memory, as described in the article on deploying YOLOv5 with Neural Magic's DeepSparse, it highlights achieving GPU-class performance on CPUs, but even this might be too resource-intensive for an ESP32-CAM. Deploy Ultralytics YOLOv5 With Neural Magic’s DeepSparse for GPU-Class Performance on CPUs. |
thank you so much ill try it and ill tel you if its work thank you |
@Sadek-21 glad to help! For ESP32-CAM deployments, consider that YOLOv5 models might be too computationally heavy for this hardware. We recommend exploring:
Let us know how it goes! 🚀 |
first sorry for my simple English
so I have this project for detecting objects and I use yolov5 to detect the object that I want and I do this step I try the code and its working in the cam in my laptop and now I want to detect with my ESP32-cam and the code didn't work in my esp32 it showing me video but its to slow and detecting the movement with delay and when I show in front of the espcam the object that I trained it didn't detected
Pleas if some one have an idea about this
The text was updated successfully, but these errors were encountered: