AI Hints
Home›Computer Vision Tutorial›Review: Deep Vision
Computer Vision · Lesson 100 of 111

Review: Vision in Production

The failures that matter.

⏱ 2 min read▶ Video at 2:43:26🎓 Free
Watch this lesson in the Computer Vision courseWatch on YouTube ↗Full Computer Vision course

Most courses stop at accuracy. You've gone further. This round tests the knowledge that separates someone who's trained a model from someone who's shipped one.

Review: Vision in Production
From the video: Review: Vision in Production
  • Most courses stop at accuracy
  • You went further
  • Trained versus shipped

Recap: production

Domain shift means that the world differs from your training data, so test each condition separately. Augment for the changes that you expect. Set thresholds using the cost of each mistake. Split data by object, or you'll leak. Confidence can be high while accuracy is low. And monitor the inputs, because you won't have labels.

Domain shifttest each condition
Costsset the threshold
Group splitsno leaks
Monitor inputsno labels live

Question 1

Question 1. A model drops from 98 to 53 percent in dim light. What's this called? A, Overfitting the labels. B, Domain shift. C, Underfitting. D, Aliasing. Pause and choose. The answer is B. The world changed, not the code.

Quick check
A model drops from 98 to 53 percent in dim light. What's this called?

Question 2

Question 2. What's the cheapest fix for that? A, A new architecture. B, Brightness augmentation. C, More layers. D, A larger batch. Pause and choose. The answer is B. Ours went from 53 to 97 percent.

Quick check
What's the cheapest fix for that?

Question 3

Question 3. How should you set a decision threshold? A, Always 0.5. B, From the cost of each mistake. C, Randomly. D, By accuracy alone. Pause and choose. The answer is B. Our cost fell by over 80 percent.

Quick check
How should you set a decision threshold?

Question 4

Question 4. A video dataset gets 99 percent with a random split. What do you suspect? A, A great model. B, Frames leaking between sets. C, Too few epochs. D, Wrong labels. Pause and choose. The answer is B. Split by video.

Quick check
A video dataset gets 99 percent with a random split. What do you suspect?

Question 5

Question 5. How can you detect a defect that you've never seen? A, More labels. B, Learn what normal looks like. C, Lower accuracy. D, Bigger images. Pause and choose. The answer is B. That's anomaly detection.

Quick check
How can you detect a defect that you've never seen?

Question 6

Question 6. Our model was 98 percent sure, and right 59 percent of the time. What does that show? A, It is calibrated. B, Confidence can't be trusted on new data. C, It needs more colour. D, It is perfect. Pause and choose. The answer is B. Add input checks.

Quick check
Our model was 98 percent sure, and right 59 percent of the time. What does that show?

Summary

Next, a final round of the practical details.

Key takeaways
  • Domain shift is the top killer
  • Thresholds come from costs
  • Confidence isn't accuracy
Next up: Review: Practical Details — the small things that bite