SAM forward method when all input prompts are None

I was wondering how the SAM model predicts if no inputs are provided. Specifically, the forward method allows the input_points, input_boxes, and input_prompts to be optional and are set as None. How does the prompt_encoder work in this case to make predictions?

Screenshot 2024-09-19 at 3.34.22 PM