    def _get_obj_num(self, 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.
third_parts/sam2/sam2_video_predictor.py