1. A method for generating depth maps, the method comprising: receiving, by one or more computing devices having one or more processors, a set of image frames, each image frame of the set of image frames including pixels; aligning, by the one or more computing devices, the set of image frames to provide flows of the pixels in the set of image frames; for each pixel of each image frame of the set of image frames, determining, by the one or more computing devices, a vote value based at least in part on a voting scheme where each pixel of an image frames of the set of image frames votes for a corresponding pixel in another image frame of the set of image frames according to the flows; identifying, by the one or more computing devices, any region of bokeh effect in each image frame of the set of image frames based at least in part the determined vote values; adjusting, by the one or more computing devices, the alignment of the set of image frames based at least in part on the identified regions of bokeh effect; and generating, by the one or more computing devices, a depth map based at least in part on the adjusted alignment.