Officers found one victim with a gunshot wound to his leg and a second victim a few blocks away who was struck in the face by a bullet fragment, police said.
Both victims are expected to recover from their injuries.
Anyone who witnessed the shooting or has information should call San Francisco police immediately.