# Codeblock 5c target_bbox_confidence = target[..., 20:21] #(1) pred_bbox0_confidence = prediction[..., 20:21] #(2) pred_bbox1_confidence = prediction[..., 25:26] #(3) target_bbox_confidence = obj * target_bbox_confidence #(4) best_bbox_confidence = obj * (best_bbox_idx*pred_bbox1_confidence #(5) + (1-best_bbox_idx)*pred_bbox0_confidence) object_loss = sse( #(6) torch.flatten(obj * target_bbox_confidence * best_iou), #(7) torch.flatten(obj * best_bbox_confidence), )