def _get_obj_num(inference_state):
    """Get the total number of unique object ids received so far in this session."""
    return len(inference_state["obj_idx_to_id"])
Get the total number of unique object ids received so far in this session.
projects/llava_sam2/models/predictor/sam2_predictor.py