UAT 322 Artificial Intelligence and Autonomous Unmanned Aircraft Systems Integration Laboratory

Worksheet 4 Measuring a detector on the real board

Lab 12 hAssesses CLO2

Objective

Deploy a detector on the companion computer, measure quantization's effect on accuracy and time, and produce a model card

Equipment and materials

  • The lab's companion computer board
  • Detector from UAT 315
  • ONNX Runtime
  • Real-work images for calibration and evaluation
  • Board temperature and power monitoring
  • Lab notebook

Safety

  • Bench work; no flying
  • The board can get hot under sustained load; fit a heatsink or fan and do not touch it running
  • Use images without identifiable outsiders, or with permission

Steps

  1. Export to ONNX and check outputs match the original on the same images
  2. Apply static quantization with ONNX Runtime using real-work calibration images
  3. Evaluate accuracy before and after quantization
  4. On the real board, warm up at least 10 runs then time model-only and end-to-end over 400 runs to CSV
  5. Compute p95 with Example 2 against the per-frame budget; record temperature and power
  6. Write a one-page model card with stop criteria

Record of results

Table 1 ONNX export check and accuracy before and after quantization
Model versionNumeric precisionLargest difference from the originalAccuracy metric and valueEvaluation images (count, lighting)
Table 2 Times on the real board against the per-frame budget (400 runs after warm-up)
VersionModel-only median (ms)End-to-end mean (ms)End-to-end p95 (ms)Frames over budget (%)Distance at 8 m/s during p95 (m)
Table 3 Board temperature and power during the test
Time from start (min)Version runningTemperature (°C)Power (W)Notes (e.g. slowdown)

Questions

  1. From Table 2, does the INT8 version meet the per-frame budget at 30 fps? If it misses slightly, what options are there, and which did your group choose?

  2. Why report end-to-end p95 rather than mean inference time? Show the difference with your group's numbers.

  3. How much did accuracy in Table 1 drop after quantization, and how did your model card set its stop criterion?

  4. Why can the manufacturer's TOPS figure or times measured on a PC not replace measurement on the real board?

Check before you hand in

What to hand in

  • ONNX versus original output table
  • FP32 versus INT8 accuracy table
  • CSV and p95 against the budget
  • One-page model card

CLO2 Develop autonomous missions using edge AI. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack