ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

概念

Built-in algorithms: image and video

Image Classification, Object Detection and Semantic Segmentation, and when Rekognition is the better choice.

本课尚未翻译,暂以英文显示。

  • Image Classification

    Output
    A label per image
    Training data
    Images with labels
  • Object Detection

    Output
    Boxes and labels
    Training data
    Images and box annotations
  • Semantic Segmentation

    Output
    A class per pixel
    Training data
    Images and masks
The three vision algorithms.
Standard objects or faces?
Rekognition
No ML code, few images?
Rekognition Custom Labels
SageMaker AI algorithm
yesnoyesno
Rekognition or SageMaker AI?

是什么

Three built-in algorithms handle images. Image Classification gives a label for each image (or several labels, in multi-label mode). Object Detection finds each object and returns a bounding box and a label. Semantic Segmentation labels every pixel with a class, for tasks such as road scenes. The built-in algorithms read images, so for video, extract frames and run them on the frames.

是什么

They are neural networks, so you train on GPU instances. Often you use transfer learning: start from a network pre-trained on a large image set and fine-tune it on your images, which needs far fewer images and less time. Both MXNet and TensorFlow versions exist; the TensorFlow ones fine-tune pre-trained TensorFlow Hub models.

Input: images as JPEG or PNG files, or packed RecordIO files. Object Detection also needs annotation files with the boxes, and Semantic Segmentation needs a mask image for each training image.

是什么

Compare Amazon Rekognition. Use Rekognition when its standard labels fit. Use Rekognition Custom Labels for your own objects with a few images and no ML code. Use a SageMaker AI algorithm when you need control over the network, tuning or training data at scale.

要记住

  • Image Classification: one label per image. Object Detection: boxes and labels. Semantic Segmentation: a class per pixel.
  • Train on GPU instances.
  • Transfer learning starts from a pre-trained network and needs fewer images.
  • Formats: image files (JPEG, PNG) or RecordIO. Detection needs box annotations. Segmentation needs mask images.

要记住

  • Video: run the algorithm on extracted frames.
  • Standard objects: Rekognition. Your own objects with no code: Rekognition Custom Labels.

考试中

  • “Draw a box around each defect in factory photos” points to Object Detection.
  • “Label every pixel as road, car or person” points to Semantic Segmentation.
  • “Train an image classifier with only a few hundred images” points to transfer learning.
  • “Find our own logo with no ML code” points to Rekognition Custom Labels.