This application relates to an
image segmentation method, apparatus, device, and storage medium, specifically in the field of
image detection technology. The method includes: acquiring
sample image data; extracting features from the
sample image data using a downsampling module of an
object detection model to obtain a target sample feature map;
upsampling the target sample feature map using an
upsampling module in the
object detection model to obtain at least two levels of upsampled feature maps; obtaining a first
loss function value based on the top-level upsampled feature map and sample annotations; performing channel compression on the at least two levels of upsampled feature maps to obtain at least two
layers of compressed feature maps; obtaining a second
loss function value based on the at least two
layers of compressed feature maps and sample annotations; and training the
object detection model using the first and second
loss function values to obtain a trained object detection model. Based on the above scheme, the image recognition accuracy of the object detection model is improved.