Skip to content
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

How to deploy a model on Raspberry Pi 5 + AI Hat with HAILO8L #759

Open
1 task done
norms-mv opened this issue Jul 5, 2024 · 2 comments
Open
1 task done

How to deploy a model on Raspberry Pi 5 + AI Hat with HAILO8L #759

norms-mv opened this issue Jul 5, 2024 · 2 comments
Labels
question A HUB question that does not involve a bug

Comments

@norms-mv
Copy link

norms-mv commented Jul 5, 2024

Search before asking

Question

Hi, I would like to deploy the model in my Raspberry Pi. I am actually using the new AI Hat for Raspberry Pi with Hailo8L and it has some segmentation, pose, face recognition and detection examples using Yolo5 and Yolo8, and the result is incredible. It runs at 30fps, but I have no idea on how to train a new model and make my own project.

Is anyone working on this?

video.analized.with.Pi5.mp4
@norms-mv norms-mv added the question A HUB question that does not involve a bug label Jul 5, 2024
Copy link

github-actions bot commented Jul 5, 2024

👋 Hello @norms-mv, thank you for raising an issue about Ultralytics HUB 🚀! Please visit our HUB Docs to learn more:

  • Quickstart. Start training and deploying YOLO models with HUB in seconds.
  • Datasets: Preparing and Uploading. Learn how to prepare and upload your datasets to HUB in YOLO format.
  • Projects: Creating and Managing. Group your models into projects for improved organization.
  • Models: Training and Exporting. Train YOLOv5 and YOLOv8 models on your custom datasets and export them to various formats for deployment.
  • Integrations. Explore different integration options for your trained models, such as TensorFlow, ONNX, OpenVINO, CoreML, and PaddlePaddle.
  • Ultralytics HUB App. Learn about the Ultralytics App for iOS and Android, which allows you to run models directly on your mobile device.
    • iOS. Learn about YOLO CoreML models accelerated on Apple's Neural Engine on iPhones and iPads.
    • Android. Explore TFLite acceleration on mobile devices.
  • Inference API. Understand how to use the Inference API for running your trained models in the cloud to generate predictions.

If this is a 🐛 Bug Report, please provide screenshots and steps to reproduce your problem to help us get started working on a fix.

If this is a ❓ Question, please provide as much information as possible, including dataset, model, environment details etc. so that we might provide the most helpful response.

We try to respond to all issues as promptly as possible. Thank you for your patience!

@pderrenger
Copy link
Member

@norms-mv hello!

Thank you for reaching out and sharing your interest in deploying YOLO models on a Raspberry Pi 5 with the AI Hat featuring the HAILO8L. It's great to hear that you're seeing impressive results with the pre-existing examples!

To train a new model and create your own project, you can leverage the Ultralytics HUB, which simplifies the process significantly. Here’s a step-by-step guide to get you started:

  1. Prepare Your Dataset: Ensure your dataset is properly annotated and formatted. You can find detailed instructions on how to prepare and upload your datasets in the Datasets section of the HUB documentation.

  2. Train Your Model: Use the Ultralytics HUB to train your custom YOLOv5 or YOLOv8 model. The HUB provides an intuitive interface to configure your training parameters. For a quick start, refer to the Quickstart guide.

  3. Export Your Model: Once your model is trained, you can export it to various formats suitable for deployment. Detailed instructions are available in the Models section.

  4. Deploy on Raspberry Pi: For deploying on the Raspberry Pi with the HAILO8L, you will need to convert your model to a format compatible with the Hailo SDK. The Hailo SDK documentation should provide guidance on how to integrate your YOLO model. Additionally, you might find the Integrations section useful for exploring different deployment options.

Here is a basic example of how you might start training a model using the Ultralytics HUB:

from ultralytics import YOLO

# Load a model
model = YOLO('yolov8n.yaml')  # or 'yolov5s.yaml' for YOLOv5

# Train the model
model.train(data='path/to/your/dataset.yaml', epochs=100)

For more detailed instructions, please refer to the Ultralytics HUB documentation.

If you encounter any issues or need further assistance, feel free to raise an issue here or join our Discord community for discussions and support.

Best of luck with your project, and happy modeling! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A HUB question that does not involve a bug
Projects
None yet
Development

No branches or pull requests

2 participants