The invention discloses a
monocular depth
estimation method and device based on a bidirectional
state space model, and a medium, relates to an
image processing technology, and solves the problems that an existing self-supervision method is insufficient in the aspects of long
sequence modeling, training speed, reasoning speed and scene complex detail capturing, and the optimization effect of the model under sparse supervision is poor. The
monocular depth
estimation method comprises the following steps: constructing an
encoder-decoder structure which comprises a continuous expansion
convolution module and a bidirectional
state space module, generating intermediate features of a training image by an
encoder, modeling long-distance intermediate feature information, and generating output features by a decoder; constructing an attitude
estimation model, performing
joint reconstruction by using output features generated by a decoder and depth estimation of a training image, modeling a learning target, and designing a
loss function of a target image and a reconstructed image to optimize a network; and training the constructed model by adopting a public KITTI
data set to obtain a weight model, and evaluating the precision of
monocular image depth estimation by the trained model. The method is used for image monocular depth estimation.