Skip to content

Learning Blocks

EdgeDetect Lite

A pre-trained box-detection model with a fixed 320 × 320 input.

Try it in Studio
On this page

What is this learning block?

EdgeDetect Lite is a box-detection model. In the model list it appears as EdgeDetect Lite (320x320 only). Studio describes it as good for devices with more than 512 KB of RAM, or Linux devices.

What does it do?

For each object in the image it predicts a box, a label and a confidence score.

How does it learn?

  1. It starts from MobileNetV2, a network already trained on millions of everyday photos (ImageNet).
  2. It uses about 8,000 fixed anchor boxes of different sizes and shapes spread over the image.
  3. For every anchor, it learns two things: does this anchor contain an object (and which one)? And how should the anchor be moved and resized to fit the object exactly?
  4. Anchors that overlap a real box by at least 50 % are treated as matches; anchors with little overlap learn to say "background".

What model architecture does it use?

  1. 1Input image320 × 320 × 3
  2. 2MobileNetV2Pre-trained backbone
  3. 3Feature pyramidFeatures at several sizes
  4. 4Detection headLabel and box per anchor
  5. 5BoxesBox, label, confidence
EdgeDetect Lite

What settings can I configure?

SettingDefaultWhat it does
Maximum training cyclesSuggestedStudio suggests 90–130 based on your dataset size.
Learning rate0.001How big each learning step is.
Training deviceCPUChoose GPU only if your PetalEdge server offers it.
Data augmentationonAdds flipped and brightness/contrast-changed copies during training.

Image size: exactly 320 × 320. Set it in Create impulse before training. Any other size stops training with a message asking you to change it.

What problems can it solve?

  • Detecting objects with boxes when you have a moderate amount of data; the pre-trained start helps.
  • Products on shelves, vehicles, tools, safety equipment.

Simple example

You set the image size to 320 × 320, label 200 photos of tools, and train with the suggested cycles. The evaluation reports mAP@[IoU=50], and live classification draws a box around each tool.

How do I understand the training results?

EdgeDetect Lite shows the same detection scores as Vision Pro:

  • mAP@[IoU=50]: the main score; higher is better.
  • mAP and mAP@[IoU=75]: stricter versions.
  • mAP@[area=…] and Recall@[…]: results by object size and by number of detections.

See Evaluating an Image model.