A feature pyramid network (FPN) helps object detectors recognize both small and large objects by combining detailed high-resolution features with semantically rich low-resolution features. section 12.3
An FPN upsamples final convolutional features through progressive Conv2DTranspose layers, then adds lateral connections from same-sized earlier feature maps. section 12.3
Use an FPN through pretrained RetinaNet
A pretrained RetinaNet model exposes FPN-based detection through KerasHub: `detector <- keras_hub$models$ObjectDetector$from_preset("retinanet_resnet50_fpn_v2_coco", bounding_box_format = "rel_xywh")` `predictions <- predict(detector, list(image))` The returned predictions include bounding boxes, confidence scores, labels, and the number of detections. section 12.3
Figure 12.8 An FPN creates semantically interesting feature maps at different scales.
Use the architecture sketch to see how semantically meaningful feature maps are produced at multiple spatial scales. section 12.3

