If pedestrians are illegally crossing in the middle of the street instead of in a crosswalk, you:

You must yield to pedestrians at all times. If the pedestrians are jaywalking or crossing the street where they should not be, you must still stop for them.
DMV Writen Test