Training method, training device and application of drivable area detection model
By preprocessing and feature fusion of the image sample library, combined with loss function optimization, the problem of insufficient detection accuracy of drivable areas in the existing technology is solved, the detection accuracy is significantly improved and the misclassification rate is reduced.
Patent Information
- Application Number
- CN201910327530.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-04-23
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2039-04-23
AI Technical Summary
Among the existing drivable area detection algorithms, lidar sensors are expensive and difficult to popularize, and algorithms based on color cameras have insufficient detection accuracy, especially in assisted driving and autonomous driving applications. There are misclassification problems.
This paper proposes a training method for the drivable area detection model. It performs preprocessing and convolution operations on the initial road images in the image sample library, fuses and weights features of different scales, and combines the loss function to optimize the initial drivable area detection model to reduce vehicle and The probability that a pedestrian edge is mistakenly classified as a drivable area.
It significantly improves the accuracy of drivable area detection, reduces the probability that the edges of vehicles and pedestrians on the road are mistakenly classified as drivable areas, and enhances the detection capability of the algorithm.
Smart Images

Figure CN111832368B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of traffic information technology and computer vision technology traffic application, and in particular to a training method, a training device and an application of a drivable area detection model. Background Art
[0002] Driving area detection is of great significance in assisted driving and autonomous driving applications. In assisted driving, early warning of non-drivable areas can reduce traffic accidents; in autonomous driving, driving area detection can provide path planning assistance. At present, driving area detection algorithms can be divided into two main categories. One is based on lidar sensor algorithms. The lidar required by this type of algorithm is expensive and difficult to popularize. The other is based on color camera algorithms, which use machine learning and computer vision methods to detect driving areas. Summary of the invention
[0003] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a training method, device and application of a drivable area detection model, which greatly improves the detection accuracy of the algorithm.
[0004] The specific plan is as follows:
[0005] A training method for a drivable area detection model, comprising:
[0006] Obtaining an image sample library, the image sample library comprising an initial road image and a real target image obtained by preprocessing the initial road image and used to characterize a drivable area;
[0007] Selecting an initial road image from an image sample library and inputting it into an initial drivable area detection model, and determining a predicted target image corresponding to the initial road image;
[0008] Determine a loss function according to the predicted target image and a real target image corresponding to the predicted target image;
[0009] The initial drivable area detection model is trained based on the loss function to determine a drivable area detection model.
[0010] According to a preferred embodiment of the present invention, determining the loss function according to the predicted target image and the real target image corresponding to the predicted target image specifically includes:
[0011] Determine a first loss function according to the predicted target image and a real target image corresponding to the predicted target image;
[0012] Determine the edges of the drivable areas of the real target image and the predicted target image respectively, and determine a second loss function according to the edges of the drivable areas of the real target image and the predicted target image;
[0013] The loss function is determined by the first loss function and the second loss function.
[0014] According to a preferred embodiment of the present invention, the initial road image is preprocessed, specifically: the initial road image is manually labeled.
[0015] According to a preferred embodiment of the present invention, selecting an initial road image from an image sample library and inputting it into an initial drivable area detection model to determine a predicted target image corresponding to the initial road image specifically includes:
[0016] Selecting an initial road image from an image sample library and inputting it into the initial drivable area detection model;
[0017] Performing a convolution operation on the initial road image;
[0018] Fusing the result features in the convolution operation process and outputting the fused features of the initial road image;
[0019] A predicted target image corresponding to the initial road image is determined according to the fusion features of the initial road image.
[0020] According to a preferred embodiment of the present invention, the fusing of the result features in the convolution operation process and outputting the fused features of the initial road image specifically includes:
[0021] Performing feature connection on the result features in the convolution operation process;
[0022] Balance the scale of features after feature concatenation;
[0023] Convert the scale-balanced features into feature vectors and calculate the weight vector of the feature vectors;
[0024] The weight vector is point-multiplied with the scale-balanced feature to complete the weighting of the connected features, and finally the fused feature is output.
[0025] According to a preferred embodiment of the present invention, the training of the initial drivable area detection model based on the loss function to determine the drivable area detection model specifically includes:
[0026] The loss function is optimized, and the parameters of the initial drivable area detection model are updated until the initial drivable area detection model converges or the number of iterations reaches a set number, and the drivable area detection model is determined.
[0027] A training device for a drivable area detection model, comprising:
[0028] An image sample library, in which a large number of road images under various imaging conditions are stored as initial road images, and real target images that can represent the drivable area in the initial road images are stored;
[0029] An initial drivable area detection model, used to determine a predicted target image corresponding to an initial road image;
[0030] A calculation module, used for determining a loss function according to a predicted target image and a real target image corresponding to the predicted target image;
[0031] An updating module is used to train the initial drivable area detection model based on the loss function to determine the drivable area detection model.
[0032] A drivable area detection method, comprising:
[0033] Acquire a real-time road image to be detected;
[0034] The drivable area detection model obtained by the training method of the drivable area detection model is used to detect the real-time road image; and the detection result that can characterize the drivable area is output.
[0035] A drivable area detection device, comprising:
[0036] An image acquisition module, used to acquire a real-time road image to be detected;
[0037] The drivable area detection model trained by the drivable area detection model training method is used to detect real-time road images;
[0038] The result output module is used to output the detection result that can characterize the drivable area.
[0039] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned drivable area detection method when executing the computer program.
[0040] A computer-readable storage medium stores a computer program, which implements the steps of the above-mentioned drivable area detection method when executed by a processor.
[0041] The drivable area detection model obtained by the training method of the drivable area detection model in the present invention is used to detect real-time road images, and the structural information described by the edge line of the drivable area can be integrated into the drivable area detection, thereby reducing the probability of misclassifying the edges of vehicles and pedestrians in the road as drivable areas, greatly improving the detection accuracy of the algorithm, and at the same time adding by fusing features of different scales and weighting the features through weight vectors, thereby stimulating important features and suppressing unimportant features. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a flowchart of a training method of a drivable area detection model in the present invention;
[0043] Figure 2 This is a schematic diagram of the labeled image results and the Sobel operation results;
[0044] Figure 3 is a schematic diagram of a process for determining a predicted target image corresponding to an initial road image;
[0045] Figure 4 It is a flowchart of feature fusion;
[0046] Figure 5 It is a flowchart of the process of determining the loss function;
[0047] Figure 6 It is a structural schematic diagram of a training device for a drivable area detection model in the present invention;
[0048] Figure 7 It is a structural diagram of the initial drivable area detection model;
[0049] Figure 8 It is a structural diagram of the feature fusion module;
[0050] Fig. 9 It is a flow chart of the drivable area detection method in the present invention;
[0051] Fig.10 It is a structural schematic diagram of the drivable area detection device in the present invention;
[0052] Fig.11 It is a structural block diagram of the computer device in the present invention; DETAILED DESCRIPTION
[0053] In view of the problems existing in the prior art, the present invention proposes a training method, a training device and an application of a drivable area detection model. The drivable area mainly refers to a safe road area that a vehicle can reach in a short time without causing dangers such as collision, including an area without obstacles in the same direction lane, a road surface in the potential drivable direction of an intersection or ramp, etc.
[0054] like Figure 1 The flowchart of the embodiment of the training method of the drivable area detection model in the present invention includes the following specific implementation methods:
[0055] 101, obtaining an image sample library, the image sample library including an initial road image and a real target image obtained by preprocessing the initial road image and used to represent a drivable area;
[0056] 102, selecting an initial road image from an image sample library and inputting it into an initial drivable area detection model to determine a predicted target image corresponding to the initial road image;
[0057] 103, determining a loss function according to the predicted target image and a real target image corresponding to the predicted target image;
[0058] 104 , training the initial drivable area detection model based on the loss function to determine the drivable area detection model.
[0059] In 101, a collection vehicle equipped with a monocular camera may be used to collect the initial road image. The collection vehicle may be an unmanned vehicle or a manned vehicle. The number of the collected initial road images may be determined according to actual needs.
[0060] After the initial road image is collected, it is necessary to perform preliminary processing on the initial road image, specifically, adjusting the image size and subtracting the mean. Among them, adjusting the image size specifically involves adjusting the image size in the image sample library to 512*512 to reduce the amount of calculation in the training and detection process; subtracting the mean specifically involves subtracting 123, 117, and 104 from the pixels of the three RGB channels of the image in the image sample library respectively to achieve image normalization.
[0061] The initial road image is preprocessed by manually annotating the initial road image, or by machine annotating. Through annotation, the real target image of each initial road image in the image sample library is obtained. The real target image can represent the actual drivable area in the initial road image. The specific representation form is: the pixel value of the drivable area in the real target image is 1, and the pixel value of other areas is 0; Figure 2 As shown, Figure 2 (a) is the initial road image, Figure 2 (b) is the real target image.
[0062] In 102, the predicted target image is an image that can represent the drivable area in the initial road image after detection by the initial drivable area detection model, such as Figure 3 As shown, determining the predicted target image corresponding to the initial road image includes the following specific implementations:
[0063] 301, selecting an initial road image from an image sample library and inputting the image into an initial drivable area detection model;
[0064] 302, performing a convolution operation on the initial road image;
[0065] 303, fusing the result features in the convolution operation process and outputting the fused features of the initial road image;
[0066] 304 , determining a predicted target image corresponding to the initial road image according to the fusion features of the initial road image.
[0067] In 303, features of different scales can be fused and weighted by weight vectors, thereby achieving the effect of stimulating important features and suppressing unimportant features. Therefore, Figure 4 As shown, fusing the result features in the convolution operation process and outputting the fused features includes the following specific implementations:
[0068] 401, concatenate the result features in the convolution operation process;
[0069] 402, balance the scale of the features after feature concatenation, specifically: balance the scale of the features by using convolution (conv), batch normalization (bn), and convolution rectified linear unit (ReLU);
[0070] 403, converting the scale-balanced features into feature vectors and calculating the weight vectors of the feature vectors, specifically: firstly converting the scale-balanced features into feature vectors by using a global average pool, and then sequentially subjecting the feature vectors to 1*1 convolution, rectified linear unit, 1*1 convolution and sigmoid function to calculate the weight vectors of the feature vectors;
[0071] 404, multiply (mul) the weight vector and the scale-balanced feature to complete the weighting of the connected features, and finally output the fused feature.
[0072] The initial drivable area detection model in this embodiment uses resnet18 as the basic network structure, including n res i modules, where i = 2, 3, 4...n. In this embodiment, the basic network structure includes 5 res i modules: res 1 module, res 2 module, res 3 module, res 4 module and res 5 module. Therefore, in 401, the result features in the convolution operation process are connected by connecting the output features of res 4 and res 5.
[0073] In 103, in order to integrate the structural information described by the edge line of the drivable area into the drivable area detection, the probability of misclassifying the edge of vehicles and pedestrians in the road as the drivable area is reduced. Figure 5 As shown, the process of determining the loss function includes the following specific implementation methods:
[0074] 501, according to the predicted target image P mask and the predicted target image P mask The corresponding real target image T mask Determine the first loss function L1:
[0075]
[0076] Where n represents the nth pixel in the image, y i Represents the value of pixel i in the real target image, Represents the predicted target image P mask The value of pixel i in .
[0077] 502, respectively determine the drivable area edge T of the real target image edge and predict the drivable area edge P of the target image edge , according to the drivable area edge T of the real target image edge and predict the drivable area edge P of the target image edge Determine the second loss function L2; In this embodiment, the Sobel operator is used to determine the edge T of the drivable area of the real target image edge and predict the drivable area edge P of the target image edge The Sobel operator obtains the gradient images in the X and Y directions by taking the derivatives of the image in the horizontal and vertical directions, and adds the absolute values of the gradients in the two directions to obtain the image edge. Figure 2 (c) is the edge of the drivable area of the real target image. The specific calculation method is shown in the following formula:
[0078]
[0079]
[0080]
[0081] In the formula, || means to find the absolute value, n means the nth pixel in the image, and y i Represents the edge of the driving area T of the real target image in edge The value of pixel i, Represents the predicted target image driving area edge P edge The value of pixel i in .
[0082] 503. Determine the loss function L by the first loss function L1 and the second loss function L2: L=αL1+βL2, where α and β are weight coefficients, both set to 0.5.
[0083] In 104, the specific implementation method of training the initial drivable area detection model is: optimizing the loss function, updating the parameters of the initial drivable area detection model, until the initial drivable area detection model converges or the number of iterations reaches the set number, and determining the drivable area detection model. The loss function is optimized by gradient descent with momentum, the specific momentum is 0.9, and the initial learning rate is 0.001.
[0084] The above is an introduction to an embodiment of a training method for a drivable area detection model in the present invention. The following is an embodiment of a training device for a drivable area detection model in the present invention to further illustrate the scheme of the present invention.
[0085] like Figure 6 The structure diagram of the training device of the drivable area detection model is shown, including:
[0086] An image sample library 601, in which a large number of road images under various imaging conditions are stored as initial road images, and real target images that can represent the drivable area in the initial road images are stored;
[0087] An initial drivable area detection model 602, used to determine a predicted target image corresponding to an initial road image;
[0088] A calculation module 603 is used to determine a loss function according to the predicted target image and a real target image corresponding to the predicted target image;
[0089] The updating module 604 trains the initial drivable area detection model based on the loss function to determine the drivable area detection model.
[0090] refer to Figure 7 The initial drivable area detection model 602 may further include:
[0091] The basic network structure 701 is used to perform convolution operations on the initial image. In this embodiment, resnet18 is used as the basic network structure, including 5 res i modules, res 1 module, res 2 module, res 3 module, res 4 module and res 5 module. The res 1 module includes an input layer and a convolution layer. The res 2 module includes a convolution layer, a convolution layer, a convolution layer and a convolution layer. The res 3 module includes a convolution layer, a convolution layer, a convolution layer and a convolution layer. The res 4 module includes a convolution layer, a convolution layer, a convolution layer and a convolution layer. The res 5 module includes a convolution layer, a convolution layer, a convolution layer and a convolution layer. The basic network structure can also be replaced by resnet50, vgg16, mobilenetV2, etc.
[0092] The feature fusion module 702 is used to fuse the result features in the convolution operation process of the basic network structure and output the fused features of the initial image; specifically, it fuses the features output by the res 4 module and the res 5 module.
[0093] The prediction module 703 is used to receive the fusion features output by the feature fusion module and convert the fusion features output by the feature fusion module into a prediction target image that can represent the drivable area in the initial image;
[0094] The edge perception task submodule 704 is used to receive the real target image and the predicted target image output by the prediction module, and determine the edges of the real target image and the predicted target image.
[0095] The feature fusion module is used to fuse features of different scales to stimulate important features and suppress unimportant features. Figure 8 , the feature fusion module 702 may further include:
[0096] A feature connection unit 801 is used to perform feature connection on the result features in the convolution operation process of the basic network structure;
[0097] A scale balancing unit 802, including a first convolutional layer, a batch normalization layer, and a first convolutional rectified linear unit layer, for balancing the scale of features after feature concatenation;
[0098] The weight calculation unit 803 includes a global pooling layer, a second convolution layer, a second convolutional rectified linear unit layer, a third convolution layer, and a sigmoid function layer, and is used to convert the scaled features into a feature vector and calculate the weight vector of the feature vector;
[0099] The feature fusion unit 804 is used to perform a point multiplication on the weight vector output by the weight calculation unit and the scale-balanced feature output by the scale balancing unit to complete the weighting of the connected features, and finally output the fused feature.
[0100] By adding an edge perception task submodule to the initial drivable area detection model, the structural information described by the edge line of the drivable area is integrated into the drivable area detection, which reduces the probability of misclassifying the edges of vehicles and pedestrians on the road as drivable areas, and greatly improves the detection accuracy of the algorithm. The calculation module 603 first calculates the first loss function based on the real target image and the corresponding predicted target image, and then calculates the second loss function based on the edge of the real target image and the predicted target image output by the edge perception task submodule, and finally determines the total loss function through the first loss function and the second loss function, and outputs the total loss function to the update module 604.
[0101] Based on the drivable area detection model determined by the training method / device of the drivable area detection model disclosed in the above embodiments, the scheme of the present invention is further described below through an embodiment of the drivable area detection method in the present invention.
[0102] like Fig. 9 A drivable area detection method shown includes the following specific implementations:
[0103] 901, obtaining a real-time road image to be detected;
[0104] 902, using the drivable area detection model obtained by the drivable area detection model training method to detect the real-time road image;
[0105] 903, output a detection result that can characterize the drivable area.
[0106] In 901, obtaining the real-time road image to be detected also requires preliminary processing, specifically adjusting the image size and subtracting the mean, among which, adjusting the image size specifically adjusts the image size in the image sample library to 512*512 to reduce the amount of calculation in the training and detection process; subtracting the mean specifically subtracts 123, 117, and 104 from the pixels of the three RGB channels of the image in the image sample library respectively to achieve image normalization.
[0107] The drivable area detection model obtained by the training method of the drivable area detection model is used to detect real-time road images. The structural information described by the edge line of the drivable area can be integrated into the drivable area detection, thereby reducing the probability of misclassifying the edges of vehicles and pedestrians on the road into drivable areas, greatly improving the detection accuracy of the algorithm, and adding features of different scales by fusing them and weighting the features through weight vectors to stimulate important features and suppress unimportant features.
[0108] The solution of the present invention is further described below through an embodiment of the drivable area detection device of the present invention.
[0109] like Fig.10 A drivable area detection device shown includes:
[0110] An image acquisition module 1001 is used to acquire a real-time road image to be detected;
[0111] The drivable area detection model 1002 trained by the drivable area detection model training method is used to detect the real-time road image;
[0112] The result output module 1003 is used to output the detection result that can represent the drivable area.
[0113] For example, during the driving process of the unmanned vehicle, the image acquisition module 1001 can obtain the road image collected by the monocular camera each time and send it to the drivable area detection model 1002, so as to obtain the drivable area on the detected image. For each road image input, the drivable area detection model 1002 will predict whether each pixel in the image belongs to the drivable area or the non-drivable area, and then output a classification result image consisting of the drivable area and the non-drivable area.
[0114] like Fig.11 Shown is a block diagram of an exemplary computer system / server 1101 for implementing embodiments of the present invention. Fig.11 The computer system / server 1101 shown is merely an example and should not limit the functionality and scope of use of embodiments of the present invention.
[0115] like Fig.11 As shown, computer system / server 1101 is in the form of a general computing device. The components of computer system / server 1101 may include, but are not limited to: one or more processors (processing units) 1102, memory 1103, and a bus 1104 connecting different system components (including memory 1103 and processor 1102).
[0116] Bus 1104 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0117] Computer system / server 1101 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer system / server 1101, including volatile and nonvolatile media, removable and non-removable media.
[0118] Memory 1103 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 1105 and / or cache memory 1106. Computer system / server 1101 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 1107 may be used to read and write non-removable, non-volatile magnetic media ( Fig.11 not shown, usually called a "hard drive"). Although Fig.11 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 1104 via one or more data medium interfaces. The memory 1103 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the embodiments of the present invention.
[0119] A program / utility having a set (at least one) of program modules 1108 may be stored in, for example, memory 1103, such program modules 1108 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include the implementation of a network environment. Program modules 1108 generally perform the functions and / or methods of drivable area detection in the embodiments described herein.
[0120] The computer system / server 1101 may also communicate with one or more external devices 1109 (e.g., keyboards, pointing devices, displays, etc.), one or more devices that enable a user to interact with the computer system / server 1101, and / or any device that enables the computer system / server 1101 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via input / output (I / O) interfaces 11010. Furthermore, the computer system / server 1101 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapters 11011. Fig.11As shown, the network adapter 11011 communicates with other modules of the computer system / server 1101 via the bus 1104. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the computer system / server 1101, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0121] The processor 1102 executes various functional applications and data processing by running the programs stored in the memory 1103, such as implementing Fig. 9 The method in the illustrated embodiment.
[0122] The present invention also discloses a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, will implement the following Fig. 9 The method in the illustrated embodiment.
[0123] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0124] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0125] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0126] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0127] The above includes the description of the preferred embodiment of the present invention, which is to explain the technical features of the present invention in detail, and is not intended to limit the invention to the specific form described in the embodiment. Other modifications and variations based on the main idea of the present invention are also protected by this patent. The main idea of the present invention is defined by the claims, not by the specific description of the embodiment.
Claims
1. A training method for a drivable area detection model, characterized in that: include: Obtaining an image sample library, the image sample library comprising an initial road image and a real target image obtained by preprocessing the initial road image and used to characterize a drivable area; Selecting an initial road image from an image sample library and inputting it into an initial drivable area detection model, and determining a predicted target image corresponding to the initial road image; Determine a loss function according to the predicted target image and a real target image corresponding to the predicted target image; Training the initial drivable area detection model based on the loss function to determine a drivable area detection model; The determining of the loss function according to the predicted target image and the real target image corresponding to the predicted target image specifically includes: Determine a first loss function according to the predicted target image and a real target image corresponding to the predicted target image; Determine the edges of the drivable areas of the real target image and the predicted target image respectively, and determine a second loss function according to the edges of the drivable areas of the real target image and the predicted target image; Determining the loss function by using the first loss function and the second loss function; The selecting an initial road image from the image sample library and inputting it into the initial drivable area detection model, and determining a predicted target image corresponding to the initial road image, specifically includes: Selecting an initial road image from an image sample library and inputting it into the initial drivable area detection model; Performing a convolution operation on the initial road image; Fusing the result features in the convolution operation process and outputting the fused features of the initial road image; Determining a predicted target image corresponding to the initial road image according to the fusion features of the initial road image; The result features of the convolution operation are fused and the fused features of the initial road image are output, specifically including: Performing feature connection on the result features in the convolution operation process; Balance the scale of features after feature concatenation; Convert the scale-balanced features into feature vectors and calculate the weight vector of the feature vectors; The weight vector is point-multiplied with the scale-balanced feature to complete the weighting of the connected features, and finally the fused feature is output.
2. The training method of the drivable area detection model according to claim 1, characterized in that: The initial road image is preprocessed, specifically: the initial road image is manually labeled.
3. The training method of the drivable area detection model according to claim 1, characterized in that: The training of the initial drivable area detection model based on the loss function to determine the drivable area detection model specifically includes: The loss function is optimized, and the parameters of the initial drivable area detection model are updated until the initial drivable area detection model converges or the number of iterations reaches a set number, and the drivable area detection model is determined.
4. A training device for a drivable area detection model, characterized in that: The training method of the drivable area detection model according to any one of claims 1 to 3 is used, and the device comprises: An image sample library, in which a large number of road images under various imaging conditions are stored as initial road images, and real target images that can represent the drivable area in the initial road images are stored; An initial drivable area detection model, used to determine a predicted target image corresponding to an initial road image; A calculation module, used for determining a loss function according to a predicted target image and a real target image corresponding to the predicted target image; An updating module is used to train the initial drivable area detection model based on the loss function to determine the drivable area detection model.
5. A method for detecting a drivable area, characterized in that: include: Acquire a real-time road image to be detected; Using the drivable area detection model obtained by the drivable area detection model training method described in any one of claims 1 to 3 to detect the real-time road image; Output the detection results that can characterize the drivable area.
6. A drivable area detection device, characterized in that: include: An image acquisition module, used to acquire a real-time road image to be detected; A drivable area detection model trained by the drivable area detection model training method according to any one of claims 1 to 3, used to detect real-time road images; The result output module is used to output the detection result that can characterize the drivable area.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to claim 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claim 5 are implemented.
