The present application relates to the technical field of artificial intelligence and disclosed are an attention mechanism-based disparity map acquisition method and apparatus, a computer device and a storage medium. The attention mechanism-based disparity map acquisition method comprises: obtaining a left original image and a right original image; using a pre-trained feature extraction model to extract a feature matrix of the left original image from the left original image, and extract a feature matrix of the right original image from the right original image; filtering the feature matrix of the left original image and the feature matrix of the right original image by using a preset attention mechanism module; obtaining a matching cost matrix according to the filtered feature matrix of the left original image and the filtered feature matrix of the right original image; inputting the matching cost matrix into a pre-trained convolutional neural network to obtain a target matching cost matrix; obtaining a disparity map according to the target matching cost matrix. By using the attention mechanism-based disparity map acquisition method, a highly accurate disparity map can be obtained.
ATTENTION MECHANISM-BASED DISPARITY MAP ACQUISITION METHOD AND APPARATUS