You want to detect objects in real-time video on a mobile device using TensorFlow Object Detection API. Which pre-trained model is best suited for this task?
Think about the trade-off between speed and accuracy on limited hardware.
SSD MobileNet V2 is optimized for speed and works well on mobile devices. Faster R-CNN models are more accurate but slower. Mask R-CNN is for segmentation and slower. YOLOv3 is not included by default in TensorFlow Object Detection API.
Given a TensorFlow Object Detection API model loaded and run on an input image batch of shape (1, 300, 300, 3), what is the shape of the 'detection_boxes' output tensor?
detections = model(input_tensor) detection_boxes = detections['detection_boxes'] print(detection_boxes.shape)
Detection models usually output a fixed number of boxes per image in the batch.
The detection_boxes tensor shape is (batch_size, max_detections, 4), where 4 represents box coordinates. The default max detections is 100.
When training a TensorFlow Object Detection API model, what is the most likely effect of increasing the batch size from 4 to 32 without changing the learning rate?
Consider how batch size affects gradient estimates and training dynamics.
Larger batch sizes speed up training per step but can reduce the noise in gradient updates, potentially leading to convergence to sharp or worse minima without adjusting learning rate.
What does the mean Average Precision (mAP) metric measure in TensorFlow Object Detection API evaluation?
Think about what precision and recall mean in detection tasks.
mAP summarizes precision-recall curves over all classes and IoU thresholds, giving a single accuracy score for detection quality.
You try to load a frozen detection graph in TensorFlow Object Detection API but get the error: 'ValueError: GraphDef cannot be parsed'. What is the most likely cause?
Consider what causes GraphDef parsing errors when loading models.
Parsing errors usually mean the frozen graph file is corrupted, truncated, or not a valid protobuf file.
