A device includes an encoder configured to generate a plurality of feature data by encoding an image; a bottleneck circuit configured to generate enhanced feature data from first bottleneck data among the plurality of feature data; and a decoder configured to generate a depth map corresponding to the image by decoding the enhanced feature data and the plurality of feature data except the first bottleneck data.