Model training method and target object recognition method
By using point-level annotation to extend the supervised block and visual augmentation in camouflage target recognition, a feature extraction model is trained, which solves the problem of low efficiency and high cost caused by pixel-level mask annotation and achieves efficient camouflage target detection.
Patent Information
- Application Number
- CN202410787876.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-06-18
AI Technical Summary
Existing methods for identifying camouflaged targets rely excessively on pixel-level mask annotations, resulting in low recognition efficiency and high costs.
By acquiring the initial RGB image, feature extraction and masking are performed. Point-level annotations are expanded into initial supervised blocks. Visual augmentation and unsupervised contrastive learning are combined to train the feature extraction model, reducing the dependence on pixel-level mask annotations.
It improves the efficiency of identifying camouflaged targets, reduces the identification cost, and achieves efficient detection of camouflaged targets with low annotation costs.
Smart Images

Figure CN118799542B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technology, and more specifically, to a model training method and a target object recognition method. Background Technology
[0002] As one of the fundamental tasks of computer vision, camouflage object detection is a technique for identifying and locating well-camouflaged objects in images or videos. These camouflaged targets can range from highly disguised animals to tiny polyps that are difficult to detect in medical images. Camouflage object detection has wide applications in many fields, such as wildlife monitoring, search and rescue, and security surveillance.
[0003] Camouflage target detection typically uses pixel-level masks as supervision information for training. However, due to the high similarity between camouflaged objects and the background, camouflage target detection is more challenging than traditional object detection or segmentation, making the acquisition of camouflage target annotations, especially at the pixel level, more difficult. Specifically, because it is very difficult for humans to detect camouflaged objects, especially given the blurred boundaries between the camouflage target and the background, pixel-level mask annotation is extremely time-consuming and labor-intensive.
[0004] In short, the over-reliance on pixel-level mask annotation in relevant camouflaged target recognition methods leads to technical problems such as low recognition efficiency and high recognition cost.
[0005] There is currently no effective solution to the above problems. Summary of the Invention
[0006] This application provides a model training method and a target object recognition method to at least solve the technical problems of low recognition efficiency and high recognition cost caused by excessive reliance on pixel-level mask annotation in related camouflaged target recognition methods.
[0007] According to one aspect of the embodiments of this application, a model training method is provided, comprising: acquiring a first initial image and a second initial image, wherein both the first initial image and the second initial image are RGB images; the first initial image includes: a target object, a background region other than the target object, and annotation points, the annotation points including: a first annotation point and a second annotation point, the first annotation point being located within the target object and the second annotation point being located within the background region; the second initial image including: the target object and the background region; performing feature extraction processing on the first initial image to obtain a first mask image; and performing feature selection processing on the first mask image according to a preset threshold and a preset indicator function to obtain a first RGB image, the first RGB image including: through image... A first target annotation point is represented by a pixel; based on the radius of the first target annotation point and preset hyperparameters, the first RGB image is processed to obtain a second RGB image, wherein the second RGB image includes: a second target annotation point represented by pixels, wherein the size of the second target annotation point is smaller than that of the first target annotation point; the second RGB image is converted into a second mask image, and the second mask image is applied to a second initial image to obtain a third RGB image; using the second RGB image and the third RGB image, a first preset feature extraction model is trained, and under the condition of satisfying the first preset condition, a first feature extraction model is obtained, wherein the first feature extraction model is used to identify the target object and background region in the image to be identified.
[0008] Optionally, feature extraction processing is performed on the first initial image to obtain a first mask image, including: expanding the annotation points in the first initial image to... An initialization supervision block is generated, where d is a positive integer; the second preset feature extraction model is trained using the initialization supervision block and the second initial image, and the second feature extraction model is obtained under the condition that the second preset condition is met; the first initial image is processed by feature extraction using the second feature extraction model to obtain the first mask image.
[0009] Optionally, the first mask image includes: third target annotation points represented by the mask, wherein the number of third target annotation points is the same as the number of annotation points; feature selection processing is performed on the first mask image according to a preset threshold and a preset indicator function to obtain a first RGB image, including: determining the radius r of the first target annotation points in the first RGB image using the following formula:
[0010] in, For the preset threshold, Here, P is the pixel value in the first mask image, and N is the number of third target annotation points.
[0011] Optionally, the first RGB image is processed according to the radius of the first target annotation point and preset hyperparameters to obtain a second RGB image, including: determining the radius R of the second target annotation point in the second RGB image using the following formula:
[0012] in, These are the preset hyperparameters.
[0013] Optionally, converting the second RGB image into a second mask image includes: randomizing the second RGB image using a preset matrix to obtain the second mask image, wherein the size of the preset matrix is the same as the size of the matrix corresponding to the second initial image, and the preset matrix consists of 0s and 1s.
[0014] Optionally, the second RGB image is randomized using a preset matrix to obtain a second mask image, including: determining the position information M of each pixel in the second mask image using the following formula:
[0015] Where i is the position index of the pixel in the second RGB image. This refers to the area corresponding to the second target marker. Z is the randomization function, and Z is the preset matrix.
[0016] Optionally, before training the first preset feature extraction model using the second RGB image and the third RGB image, the method further includes: performing different visual augmentation processes on the second initial image to obtain a first image and a second image, wherein the first image and the second image have different viewpoints; inputting the first image and the second image into the first preset feature extraction model to obtain a first viewpoint of the first image and a second viewpoint of the second image output by the first preset feature extraction model; using the third viewpoint, the first preset feature extraction model, and the output layer of the preset convolutional neural network model to predict a fourth viewpoint to obtain a prediction result, wherein the third viewpoint is any one of the first viewpoint, the second viewpoint, and the third viewpoint, and the fourth viewpoint is a viewpoint other than the third viewpoint among the first viewpoint and the second viewpoint; training the first preset feature extraction model based on the prediction result and the true value of the fourth viewpoint until the prediction error between the prediction result and the true value satisfies a third preset condition.
[0017] According to another aspect of the embodiments of this application, a method for identifying a target object is also provided, comprising: acquiring an image to be identified, wherein the image to be identified includes: an object to be identified and a background region; inputting the image to be identified into a first feature extraction model to obtain an identification result output by the first feature extraction model, wherein the identification result includes: the outline of the object to be identified, and the first feature extraction model is obtained by training through the above model training method.
[0018] According to another aspect of the embodiments of this application, a model training apparatus is also provided, comprising: an acquisition module, configured to acquire a first initial image and a second initial image, wherein the first initial image and the second initial image are both RGB images, the first initial image including: a target object, a background region other than the target object, and annotation points, the annotation points including: a first annotation point and a second annotation point, the first annotation point being located within the target object, and the second annotation point being located within the background region, the second initial image including: the target object and the background region; and a first processing module, configured to perform feature extraction processing on the first initial image to obtain a first mask image, and perform feature selection processing on the first mask image according to a preset threshold and a preset indicator function to obtain a first RGB image, wherein the first RGB image includes: features extracted from pixels. The system comprises: a first target annotation point represented by a dot; a second processing module, used to process the first RGB image according to the radius of the first target annotation point and preset hyperparameters to obtain a second RGB image, wherein the second RGB image includes: second target annotation points represented by pixels, wherein the size of the second target annotation points is smaller than that of the first target annotation points; a conversion module, used to convert the second RGB image into a second mask image and apply the second mask image to a second initial image to obtain a third RGB image; and a training module, used to train a first preset feature extraction model using the second RGB image and the third RGB image, and obtain a first feature extraction model under the condition of satisfying the first preset condition, wherein the first feature extraction model is used to identify target objects and background regions in the image to be identified.
[0019] According to another aspect of the embodiments of this application, a non-volatile storage medium is also provided, the storage medium including a stored program, wherein the program, when running, controls the device where the storage medium is located to execute the above-described model training method and target object recognition method.
[0020] According to another aspect of the embodiments of this application, an electronic device is also provided, including: a memory and a processor, wherein the processor is configured to run a program stored in the memory, wherein the program executes the above-described model training method and target object recognition method during runtime.
[0021] According to another aspect of the embodiments of this application, a computer program is also provided, wherein when the computer program is executed by a processor, it implements the above-described model training method and target object recognition method.
[0022] According to another aspect of the embodiments of this application, a computer program product is also provided, the computer program product including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and the computer program implements the above-mentioned model training method and target object recognition method when executed by a processor.
[0023] In this embodiment, a first initial image and a second initial image are obtained, both of which are RGB images. The first initial image includes a target object, a background region outside the target object, and annotation points. The annotation points include a first annotation point and a second annotation point, where the first annotation point is located within the target object and the second annotation point is located within the background region. The second initial image includes the target object and the background region. Feature extraction processing is performed on the first initial image to obtain a first mask image. Then, feature selection processing is performed on the first mask image according to a preset threshold and a preset indicator function to obtain a first RGB image. The first RGB image includes first target annotation points represented by pixels. The first RGB image is processed according to the radius of the first target annotation points and preset hyperparameters to obtain a second RGB image. The second RGB image includes: [missing information - likely related to a specific feature or function]. A second target annotation point is represented by pixels, wherein the size of the second target annotation point is smaller than that of the first target annotation point; the second RGB image is converted into a second mask image, and the second mask image is applied to the second initial image to obtain a third RGB image; the second RGB image and the third RGB image are used to train a first preset feature extraction model, and a first feature extraction model is obtained under the condition of satisfying the first preset condition. The first feature extraction model is used to identify target objects and background areas in the image to be identified. This achieves the purpose of reducing the dependence on pixel-level mask annotations in the process of identifying disguised targets, thereby improving the recognition efficiency of disguised targets and reducing the recognition cost of disguised targets. This solves the technical problem of low recognition efficiency and high recognition cost caused by excessive reliance on pixel-level mask annotations in related disguised target recognition methods. Attached Figure Description
[0024] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 This diagram illustrates different types of annotation formats in the camouflage object detection task; Figure 2 This is a flowchart of a model training method according to an embodiment of this application; Figure 3 This is a schematic diagram of a model training method according to an embodiment of this application; Figure 4 This is a flowchart of a target object identification method according to an embodiment of this application; Figure 5 This is a structural diagram of a model training device according to an embodiment of this application; Figure 6 This is a hardware structure block diagram of a computer terminal for a model training method according to an embodiment of this application. Detailed Implementation
[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0027] In the field of object detection, methods for detecting camouflaged targets are essentially the same as traditional detection methods. Early research first used feature extraction networks to obtain the features corresponding to the image. Then, downstream network structures were designed to perform final classification and regression on the obtained features.
[0028] Related Technique 1 proposes a camouflaged object detection (COD) dataset containing 10K camouflaged images. The images in this dataset require an average of approximately 60 minutes to annotate, a minute-level annotation efficiency that is unacceptable in large-scale data annotation processes. Related Technique 2 proposes a cross-graph learning method that divides the task into coarse localization and precise boundary localization. This method enables the model to better understand the images and provide more accurate localization information when detecting objects. Related Technique 3 applies joint learning to the single object detection (SOD) and COD tasks, leveraging these two tasks to balance global and local information. Although SOD and COD tasks differ in some aspects, their clever combination and joint training achieve mutual complementarity, thereby improving model performance. Related Technique 4 proposes a focus module that allows the model to more easily detect and eliminate false positive and false negative predictions, thus improving object detection accuracy. Related Technique 5 proposes a transformer-based probabilistic representation model to learn contextual information to resolve uncertainty-guided ambiguities. This model can better understand the semantic information behind images and improve the robustness of object detection. Related technology 6 proposes a frequency-aware COD method, utilizing frequency information to better identify camouflaged targets, thereby improving detection accuracy. Related technology 7 proposes a multi-scale network, employing a scaling strategy to learn mixed-scale semantic information to achieve accurate target segmentation. This method can better capture target information at different scales in images, thus improving target detection performance. Related technology 8 (Convolutional Residual Network, CRNet) proposes a graffiti-based COD learning framework, solving the problem of weakly supervised COD using graffiti annotations and improving the learning efficiency of camouflaged target detection models. CRNet is a graffiti-annotated camouflaged target detection model. It designs a local contextual contrast module to enhance low-level contrast and capture and enhance low-level differences, proposes a logical semantic relation module to integrate information from all branches to utilize comprehensive semantic information with a wider receptive field to determine the true foreground and background, and designs a semantic loss to utilize important features to refine the prediction of boundary regions.
[0029] However, using graffiti annotations as supervised information in CRNet for model training is also very time-consuming and costly. Furthermore, the stability of graffiti annotations is difficult to guarantee; different annotators may provide wildly different annotations, which can severely impact the final model performance.
[0030] Figure 1This diagram illustrates different types of annotation formats in the camouflage object detection task, such as... Figure 1 As shown, Image represents the original image, Scribble represents doodles, GT represents fully supervised labels representing the ground truth, Box represents bounding box labels, Point represents point annotation labels, Highlight Part represents visually salient areas, i.e., the parts most easily noticed by humans during annotation, Ambiguous boundaries represent the blurred boundaries between the camouflaged target and the background, Boundary issue represents one of the difficulties in camouflaged target annotation, where the boundaries are difficult to determine, and Diversity issue represents one of the difficulties in camouflaged target annotation, controlling the diversity of annotations. Different types of annotations exist in the camouflaged object detection task. Mask-level annotation (Ground Truth, GT) for each camouflaged image takes approximately 60 minutes. The doodle-level annotation (Scribble) used by CRNet takes approximately 10 seconds (the main difficulty lies in judging the difficult boundaries), but there is also the issue of diversity (Scribble1 and Scribble2 are completely different, but they may appear due to different annotators).
[0031] In summary, in order to solve the above problems, this application provides relevant solutions, which are described in detail below.
[0032] According to an embodiment of this application, a method embodiment for model training is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0033] Figure 2 This is a flowchart of a model training method according to an embodiment of this application, such as... Figure 2 As shown, the method includes the following steps: Step S201: Obtain a first initial image and a second initial image, wherein both the first initial image and the second initial image are RGB images. The first initial image includes: a target object, a background area outside the target object, and annotation points. The annotation points include: a first annotation point and a second annotation point. The first annotation point is located inside the target object, and the second annotation point is located within the background area. The second initial image includes: the target object and the background area.
[0034] The target objects are natural objects that are difficult to detect and man-made objects that are not. Natural objects that are difficult to detect include, for example, hidden objects, tiny objects, and objects that are similar in appearance to their surroundings. Man-made objects that are not easy to detect include, for example, synthetic images and artworks intended to hide information.
[0035] Step S201 first obtains a first initial image with annotation and a second initial image without annotation. The first initial image may include one target object or multiple target objects. In any case, each target object includes a annotation point. In addition, the background area outside the target object also includes a annotation point.
[0036] The markers can be manually marked or automatically set using a certain algorithm.
[0037] RGB images are an image format that uses three color channels—red, green, and blue—to represent colors. RGB stands for Red, Green, and Blue, the three primary colors of light. In digital image processing, the value of each RGB color channel is typically between 0 and 255, representing intensity from zero to full. Each pixel in an image is composed of one red, one green, and one blue color, and combinations of these three colors can generate millions of colors. For example, mixing red and green produces yellow, mixing red and blue produces magenta, and mixing green and blue produces cyan. When the intensity of all three colors is at its maximum, i.e., each channel value is 255, white is produced; and when the intensity of all three colors is zero, i.e., each channel value is 0, black is produced.
[0038] Step S202: Perform feature extraction processing on the first initial image to obtain a first mask image, and perform feature selection processing on the first mask image according to a preset threshold and a preset indicator function to obtain a first RGB image, wherein the first RGB image includes: first target annotation points represented by pixels.
[0039] Mask images are used to manipulate or isolate specific portions of an image. A mask is a binary image, typically containing only black and white pixel values (or, in some cases, only 0 and 1). Combined with the original image, a mask image allows control over which parts of the original image are subject to specific operations, such as cropping, feature extraction, and filtering.
[0040] Step S203: Based on the radius of the first target annotation point and the preset hyperparameters, process the first RGB image to obtain a second RGB image, wherein the second RGB image includes: a second target annotation point represented by pixels, wherein the size of the second target annotation point is smaller than that of the first target annotation point.
[0041] Step S204: Convert the second RGB image into a second mask image, and apply the second mask image to the second initial image to obtain a third RGB image.
[0042] Step S205: Using the second RGB image and the third RGB image, train the first preset feature extraction model. Under the condition of satisfying the first preset condition, obtain the first feature extraction model, wherein the first feature extraction model is used to identify the target object and background area in the image to be identified.
[0043] It is worth noting that during training, the model needs to explore the identification of the foreground region around the masked region in order to recover the identification of the masked foreground region and help the model divert attention to other areas of the foreground object.
[0044] According to the above steps, a first initial image and a second initial image are obtained, both of which are RGB images. The first initial image includes: a target object, a background region outside the target object, and annotation points. The annotation points include: a first annotation point and a second annotation point. The first annotation point is located within the target object, and the second annotation point is located within the background region. The second initial image includes: the target object and the background region. Feature extraction processing is performed on the first initial image to obtain a first mask image. Then, feature selection processing is performed on the first mask image according to a preset threshold and a preset indicator function to obtain a first RGB image. The first RGB image includes: first target annotation points represented by pixels. The first RGB image is further processed according to the radius of the first target annotation points and preset hyperparameters. The process involves obtaining a second RGB image, which includes second target annotation points represented by pixels, wherein the size of the second target annotation points is smaller than that of the first target annotation points. The second RGB image is then converted into a second mask image, and the second mask image is applied to a second initial image to obtain a third RGB image. Using the second RGB image and the third RGB image, a first preset feature extraction model is trained. Under the condition of satisfying the first preset condition, a first feature extraction model is obtained. This first feature extraction model is used to identify target objects and background regions in the image to be identified. This approach reduces the reliance on pixel-level mask annotations during the identification of disguised targets, thereby improving the efficiency and reducing the cost of identifying disguised targets.
[0045] According to some optional embodiments of this application, feature extraction processing is performed on the first initial image to obtain the first mask image, which can be achieved through the following steps: Expand the annotation points in the first initial image to The initialization supervision block, where d is a positive integer.
[0046] The second preset feature extraction model is trained using the initialization supervision block and the second initial image. Under the condition that the second preset condition is met, the second feature extraction model is obtained.
[0047] Specifically, the above steps can be implemented as follows: 1. Determine which points in the first initial image are labeled. 2. Determine the size of the supervision block, i.e., d×d. Here, d is the side length of the supervision block in pixels. For each labeled point, create a d×d supervision block. This supervision block is typically a matrix or array, where the elements can be pixel values or other image processing-related values. 3. Expand each labeled point into its corresponding d×d supervision block. For example, this can be achieved using nearest neighbor interpolation, bilinear interpolation, or more advanced interpolation techniques. 4. Train the model to recognize and use these supervision blocks as input. 5. Evaluate the performance of the image processing task using these supervision blocks. For example, compare the model output with the actual results, or quantify the performance using metrics such as accuracy, recall, or F1 score.
[0048] Furthermore, the first initial image is processed by the second feature extraction model to obtain the first mask image.
[0049] According to some alternative embodiments of this application, the first mask image includes: third target annotation points represented by a mask, wherein the number of third target annotation points is the same as the number of annotation points.
[0050] Furthermore, based on a preset threshold and a preset indicator function, feature selection processing is performed on the first mask image to obtain the first RGB image, which can be achieved through the following method: The radius r of the first target annotation point in the first RGB image is determined by the following formula:
[0051] in, For the preset threshold, Here, P is the pixel value in the first mask image, and N is the number of third target annotation points.
[0052] Furthermore, based on the radius of the first target annotation point and preset hyperparameters, the first RGB image is processed to obtain the second RGB image, which can be achieved through the following method: The radius R of the second target annotation point in the second RGB image is determined by the following formula:
[0053] in, These are the preset hyperparameters.
[0054] In summary, the initial labeled points were enriched into several small regions, expanding the perception while minimizing the introduction of erroneous supervision. The final supervised representation obtained is as follows:
[0055] in, This represents the circle formed by expanding the background points. The circle represents the foreground points corresponding to n targets.
[0056] As some optional embodiments of this application, the conversion of the second RGB image into a second mask image can be achieved by the following method: The second RGB image is randomized using a preset matrix to obtain a second mask image. The size of the preset matrix is the same as the size of the matrix corresponding to the second initial image, and the preset matrix consists of 0s and 1s.
[0057] Furthermore, the second RGB image is randomized using a preset matrix to obtain the second mask image, which can be achieved through the following method: The position information M of each pixel in the second mask image is determined by the following formula:
[0058] Where i is the position index of the pixel in the second RGB image. This refers to the area corresponding to the second target marker. Z is the randomization function, and Z is the preset matrix.
[0059] On the other hand, the second RGB image can also be converted into a second mask image using the following method.
[0060] An RGB image consists of three color channels: red, green, and blue. Each channel is typically represented by an 8-bit integer, ranging from 0 to 255. Therefore, an RGB image can be represented as a three-dimensional array where each element is in the form [R, G, B].
[0061] Initialize a 0 / 1 matrix of the same size as the RGB image. Each element of this matrix can start with a random 0 or 1. Fill this matrix with a random number generator. For example, in Python, this can be done using the `numpy` library: Python import numpy as np # Assume image is an RGB image, represented using numpy.array height, width, channels = image.shape # Create a 0-1 matrix with the same size as the image. mask = np.random.randint(0, 2, (height, width, channels)) ``` Finally, the mask matrix is multiplied element-wise with the original RGB image. This way, 0s in the mask will set the corresponding pixel in the image to black (0, 0, 0), while 1s will leave the pixel value unchanged.
[0062] In some optional embodiments of this application, before training the first preset feature extraction model using the second RGB image and the third RGB image, the following steps may also be performed: Different visual augmentation processes are applied to the second initial image to obtain a first image and a second image, wherein the first image and the second image have different perspectives.
[0063] It is worth noting that visual augmentation processing includes color dithering, Gaussian blur, and flipping.
[0064] You can use image processing libraries such as Python's OpenCV or Pillow, or use image processing tools in deep learning frameworks such as TensorFlow or PyTorch, to perform different visual augmentation processing on the second initial image.
[0065] Here is an example of simple visual augmentation using Python and the Pillow library: Python from PIL import Image, ImageOps, ImageEnhance # Load the original image original_image = Image.open('path_to_your_image.jpg') # Rotate image rotated_image = original_image.rotate(45) # Rotate by 45 degrees # Flip horizontally horizontal_flip_image = ImageOps.mirror(original_image) # Vertical Flip vertical_flip_image = ImageOps.flip(original_image) # Adjust brightness enhancer = ImageEnhance.Brightness(original_image) brighter_image = enhancer.enhance(1.5) # Increase brightness # Save or display the augmented image rotated_image.show() horizontal_flip_image.show() vertical_flip_image.show() brighter_image.show() ``` Using the methods described above, various visual augmentation processes can be applied to the second initial image to obtain a first image and a second image with different perspectives, thereby improving the model's adaptability to new situations.
[0066] The first image and the second image are input into the first preset feature extraction model to obtain the first view of the first image and the second view of the second image output by the first preset feature extraction model.
[0067] Using the output layer of a third perspective, a first preset feature extraction model, and a preset convolutional neural network model, a fourth perspective is predicted to obtain a prediction result. The third perspective is any one of the first perspective and the second perspective, and the fourth perspective is any one of the first perspective and the second perspective except for the third perspective.
[0068] Based on the prediction results and the true values from the fourth perspective, the first preset feature extraction model is trained until the prediction error between the prediction results and the true values meets the third preset condition.
[0069] By following the steps above, the prediction gap for different visual changes can be gradually reduced, thereby making the learned features more robust.
[0070] Figure 3 This is a schematic diagram of a model training method according to an embodiment of this application, such as... Figure 3As shown, Hint AreaGenerator represents the hint generator, Attention Regulator represents the attention regulator, Representation Optimizer represents the representation optimizer, Stop-grad represents stopping gradient backpropagation, Encoder represents the encoder (the main model being trained), Inference represents inference, Short-term Training represents a short training phase with a small training epoch w, Element-wise Multiplication represents pixel-wise multiplication, Contrastive loss represents contrastive loss, and Particical Cross Entropy loss represents local cross-entropy loss. The following section combines... Figure 2 and Figure 3 The training method for this model will be further explained.
[0071] This embodiment proposes a training framework comprising three parts: a cue generator, a representation optimizer, and an attention regulator. In the cue generator, the original point-based annotations can be adaptively expanded to a reasonable cue region. In the representation optimizer, unsupervised contrastive learning can be performed on different augmented data pairs to optimize the model representation. In the attention regulator, partial masking of the image can be performed to distribute the model's attention across the entire object.
[0072] The prompt generator section includes the following steps: First, expand the marker point into... The square initialization supervision block is used, and then the model E is briefly trained using the original images (the first initial image and the second initial image).
[0073] Then, the labeled image (first initial image) Point is input into the trained model to obtain a coarse mask image (first mask image) P. Then, the approximate size r of the target is obtained using a priori formula for the target size.
[0074] in, Indicates the threshold. It is represented as an indicator function, where N is the number of objects.
[0075] After obtaining r, a conservative strategy is used to refine r to obtain the final radius R of the circular region:
[0076] in, This represents hyperparameters, obtained through experiments.
[0077] Ultimately, with the help of the cue region generator, the labeled points were enriched into several smaller regions, expanding the perception while minimizing the introduction of erroneous supervision. The final supervised representation obtained is as follows:
[0078] in This represents the circle formed by expanding the background points. The circle represents the foreground points corresponding to n targets.
[0079] Furthermore, in the representation optimizer part, unsupervised contrastive learning is performed on data pairs with different enhancements to optimize the model representation.
[0080] like Figure 3 As shown in (c), different visual augmentations (including color jitter, Gaussian blur, flip, etc.) are applied to the original image I to obtain two different perspectives of the two images. and .
[0081]
[0082] Here, T1(.) and T2(.) represent two different visual augmentations.
[0083] Then, the two different perspectives obtained are encoded using an encoder, one of which is... Encoding results As the default standard, through Predicting head to another perspective The encoding results are performed The goal of perspective prediction is to make the representations learned by the model as similar as possible in a jittery environment.
[0084]
[0085]
[0086] Here, i is the pixel index. We need to follow the design of unified contrastive learning and perform a corresponding stop-grad operation in a certain segment.
[0087] It's worth explaining that in machine learning, the prediction head typically refers to the part of the algorithm that processes the data and generates the prediction results. For example, in deep learning, the prediction head might be the last few layers of a neural network, which are responsible for transforming feature vectors into the final prediction output.
[0088] Eventually, the prediction gap for different visual changes gradually decreases, making the learned features robust.
[0089] Furthermore, the attention modulator section includes the following steps: In camouflage scenarios, people typically annotate points on the most visually distinctive areas of the camouflaged object. Utilizing this prior knowledge to guide mask generation shifts attention from the directly supervised area to the entire object region. Figure 3 As shown in (b) above, firstly, according to the supervised area Obtain a mask (second mask image) M:
[0090] Where Z is a logical matrix composed of 0s and 1s, with the same shape as the initial image I, h(.) represents the randomization (shuffle) operation, and i represents the pixel index.
[0091] Then, the resulting mask M is applied to the initial image I:
[0092] Through this operation, salient regions of the annotation will be randomly masked. Furthermore, during training, the model needs to explore the identification of foreground regions surrounding the masked areas to recover the recognition of the masked foreground regions, helping the model to divert attention to other areas of the foreground object.
[0093] Understandably, since all three components of the above method are independent of the model's encoding, the method can be inserted into all existing fully supervised camouflaged target detection methods.
[0094] In summary, this application proposes three modular optimization schemes for point-based supervision (i.e., cue generator, representation optimizer, and attention regulator), which enable better performance with very low annotation costs.
[0095] This application only requires the following: Figure 1The point-level annotations shown in this application only take 2 seconds, saving 80% of the annotation time compared to Scribble annotations. Furthermore, it only needs to point to the most distinctive part of the camouflaged object, eliminating the diversity issue. CRNet uses graffiti annotations as supervision information, which is costly. The method provided in this application saves 80% of the annotation cost compared to CRNet's graffiti labels and achieves better performance. CRNet's graffiti annotations take an average of 10 seconds per image, while the point annotations provided in this application only take an average of 2 seconds per image. CRNet's method for using graffiti labels as weak supervision has limitations on the application environment, while the method provided in this application is plug-and-play. Because CRNet uses ResNet50 as its backbone and constructs its loss using different feature maps obtained from ResNet50, it cannot be transferred to other fully supervised models that do not use ResNet50, such as models using VGG16 or ViT as backbone networks. The method provided in this application is independent of the backbone network (Encode) of the model, so theoretically our method can be inserted into all existing fully supervised camouflage target detection methods.
[0096] Furthermore, this application can achieve high accuracy while significantly reducing the consumption of supervision annotations.
[0097] Figure 4 This is a flowchart of a target object identification method according to an embodiment of this application, such as... Figure 4 As shown, the method includes the following steps: Step S401: Obtain the image to be recognized, wherein the image to be recognized includes: the object to be recognized and the background area.
[0098] Step S402: Input the image to be recognized into the first feature extraction model to obtain the recognition result output by the first feature extraction model. The recognition result includes the outline of the object to be recognized. The first feature extraction model is a method for identifying objects through... Figure 2 The model is obtained by training using the aforementioned model training method.
[0099] It should be noted that, Figure 4 Preferred embodiments of the shown examples can be found in [reference needed]. Figure 2 The relevant descriptions of the embodiments shown will not be repeated here.
[0100] Figure 5 This is a structural diagram of a model training device according to an embodiment of this application, such as... Figure 5 As shown, the device includes: The acquisition module 51 is used to acquire a first initial image and a second initial image, wherein both the first initial image and the second initial image are RGB images. The first initial image includes: a target object, a background area other than the target object, and annotation points. The annotation points include: a first annotation point and a second annotation point. The first annotation point is located inside the target object, and the second annotation point is located within the background area. The second initial image includes: the target object and the background area.
[0101] The first processing module 52 is used to perform feature extraction processing on the first initial image to obtain a first mask image, and to perform feature selection processing on the first mask image according to a preset threshold and a preset indicator function to obtain a first RGB image, wherein the first RGB image includes: a first target annotation point represented by a pixel.
[0102] The second processing module 53 is used to process the first RGB image according to the radius of the first target annotation point and preset hyperparameters to obtain a second RGB image, wherein the second RGB image includes: a second target annotation point represented by pixels, wherein the size of the second target annotation point is smaller than that of the first target annotation point.
[0103] The conversion module 54 is used to convert the second RGB image into a second mask image and apply the second mask image to the second initial image to obtain a third RGB image.
[0104] The training module 55 is used to train the first preset feature extraction model using the second RGB image and the third RGB image. Under the condition of satisfying the first preset condition, the first feature extraction model is obtained. The first feature extraction model is used to identify the target object and the background area in the image to be identified.
[0105] Optionally, feature extraction processing is performed on the first initial image to obtain a first mask image, including the following steps: expanding the annotation points in the first initial image to... An initialization supervision block is generated, where d is a positive integer; the second preset feature extraction model is trained using the initialization supervision block and the second initial image, and the second feature extraction model is obtained under the condition that the second preset condition is met; the first initial image is processed by feature extraction using the second feature extraction model to obtain the first mask image.
[0106] Optionally, the first mask image includes: third target annotation points represented by the mask, wherein the number of third target annotation points is the same as the number of annotation points; feature selection processing is performed on the first mask image according to a preset threshold and a preset indicator function to obtain a first RGB image, including the following steps: determining the radius r of the first target annotation points in the first RGB image using the following formula:
[0107] in, For the preset threshold, Here, P is the pixel value in the first mask image, and N is the number of third target annotation points.
[0108] Optionally, the first RGB image is processed according to the radius of the first target annotation point and preset hyperparameters to obtain the second RGB image, including the following steps: determining the radius R of the second target annotation point in the second RGB image using the following formula:
[0109] in, These are the preset hyperparameters.
[0110] Optionally, converting the second RGB image into a second mask image includes the following steps: randomizing the second RGB image using a preset matrix to obtain the second mask image, wherein the size of the preset matrix is the same as the size of the matrix corresponding to the second initial image, and the preset matrix consists of 0s and 1s.
[0111] Optionally, the second RGB image is randomized using a preset matrix to obtain a second mask image, including the following steps: determining the position information M of each pixel in the second mask image using the following formula:
[0112] Where i is the position index of the pixel in the second RGB image. This refers to the area corresponding to the second target marker. Z is the randomization function, and Z is the preset matrix.
[0113] Optionally, before training the first preset feature extraction model using the second RGB image and the third RGB image, the following steps are further included: performing different visual augmentation processes on the second initial image to obtain a first image and a second image, wherein the first image and the second image have different viewpoints; inputting the first image and the second image into the first preset feature extraction model to obtain the first viewpoint of the first image and the second viewpoint of the second image output by the first preset feature extraction model; using the third viewpoint, the first preset feature extraction model, and the output layer of the preset convolutional neural network model to predict the fourth viewpoint to obtain a prediction result, wherein the third viewpoint is any one of the first viewpoint, the second viewpoint, and the third viewpoint, and the fourth viewpoint is any one of the first viewpoint and the second viewpoint except for the third viewpoint; training the first preset feature extraction model based on the prediction result and the true value of the fourth viewpoint until the prediction error between the prediction result and the true value satisfies the third preset condition.
[0114] It should be noted that the above Figure 5 The modules in can be program modules (e.g., a set of program instructions that implements a specific function) or hardware modules. For the latter, they can be represented in the following forms, but are not limited to these: each of the above modules is represented by a processor, or the functions of each of the above modules are implemented by a processor.
[0115] It should be noted that, Figure 5 Preferred embodiments of the shown examples can be found in [reference needed]. Figure 2 The relevant descriptions of the embodiments shown will not be repeated here.
[0116] Figure 6 A hardware block diagram of a computer terminal for implementing a model training method is shown. Figure 6 As shown, the computer terminal 60 may include one or more processors 602 (shown as 602a, 602b, ..., 602n in the figure) 602 (processor 602 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 604 for storing data, and a transmission module 606 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 6 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, the computer terminal 60 may also include... Figure 6 The more or fewer components shown, or having the same Figure 6 The different configurations shown.
[0117] It should be noted that the aforementioned one or more processors 602 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 60. As described in the embodiments of this application, the data processing circuits serve as processor control (e.g., selection of a variable resistor termination path connected to an interface).
[0118] The memory 604 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the model training method in this embodiment. The processor 602 executes various functional applications and data processing by running the software programs and modules stored in the memory 604, thereby realizing the above-mentioned model training method. The memory 604 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 604 may further include memory remotely located relative to the processor 602, and these remote memories can be connected to the computer terminal 60 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0119] The transmission module 606 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 60. In one example, the transmission module 606 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission module 606 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0120] The display may be, for example, a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the computer terminal 60.
[0121] It should be noted here that, in some optional embodiments, the above... Figure 6 The computer terminal shown may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that... Figure 6 This is only one instance of a specific particular instance, and is intended to illustrate the types of components that may exist in the aforementioned computer terminal.
[0122] It should be noted that, Figure 6 The computer terminal shown is used to execute Figure 2 The model training method shown above is also applicable to this electronic device, and will not be repeated here.
[0123] This application also provides a non-volatile storage medium, which includes a stored program, wherein the program, when running, controls the device where the storage medium is located to execute the above model training method.
[0124] A non-volatile storage medium performs the following functions: acquiring a first initial image and a second initial image, wherein both the first and second initial images are RGB images; the first initial image includes: a target object, a background region other than the target object, and annotation points, the annotation points including: a first annotation point and a second annotation point, the first annotation point being located within the target object and the second annotation point being located within the background region; the second initial image includes: the target object and the background region; performing feature extraction processing on the first initial image to obtain a first mask image; and performing feature selection processing on the first mask image according to a preset threshold and a preset indicator function to obtain a first RGB image, the first RGB image including: pixels representing... First target annotation point; based on the radius of the first target annotation point and preset hyperparameters, process the first RGB image to obtain a second RGB image, wherein the second RGB image includes: second target annotation points represented by pixels, wherein the size of the second target annotation points is smaller than that of the first target annotation point; convert the second RGB image into a second mask image, and apply the second mask image to the second initial image to obtain a third RGB image; use the second RGB image and the third RGB image to train a first preset feature extraction model, and obtain a first feature extraction model under the condition of satisfying the first preset condition, wherein the first feature extraction model is used to identify target objects and background regions in the image to be identified.
[0125] This application also provides an electronic device, including a memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the program executes the above-described model training method during runtime.
[0126] The processor is used to run a program that performs the following functions: acquiring a first initial image and a second initial image, wherein both the first initial image and the second initial image are RGB images; the first initial image includes: a target object, a background region other than the target object, and annotation points, the annotation points including: a first annotation point and a second annotation point, the first annotation point being located within the target object and the second annotation point being located within the background region; the second initial image includes: the target object and the background region; performing feature extraction processing on the first initial image to obtain a first mask image; and performing feature selection processing on the first mask image according to a preset threshold and a preset indicator function to obtain a first RGB image, the first RGB image including: a first RGB image represented by pixels. A target annotation point; based on the radius of the first target annotation point and preset hyperparameters, the first RGB image is processed to obtain a second RGB image, wherein the second RGB image includes: a second target annotation point represented by pixels, wherein the size of the second target annotation point is smaller than that of the first target annotation point; the second RGB image is converted into a second mask image, and the second mask image is applied to a second initial image to obtain a third RGB image; using the second RGB image and the third RGB image, a first preset feature extraction model is trained, and under the condition of satisfying the first preset condition, a first feature extraction model is obtained, wherein the first feature extraction model is used to identify the target object and background region in the image to be identified.
[0127] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0128] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0129] In the above embodiments of this application, the information collected is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data all comply with relevant laws, regulations and standards, take necessary protective measures, do not violate public order and good morals, and provide corresponding operation entry points for users to choose to authorize or refuse.
[0130] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0131] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0132] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0133] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to related technologies, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0134] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A model training method, characterized in that, include: A first initial image and a second initial image are obtained, wherein the first initial image and the second initial image are both RGB images. The first initial image includes: a target object, a background area other than the target object, and annotation points. The annotation points include: a first annotation point and a second annotation point. The first annotation point is located within the target object, and the second annotation point is located within the background area. The second initial image includes: the target object and the background area. The first initial image is subjected to feature extraction processing to obtain a first mask image. Then, according to a preset threshold and a preset indicator function, the first mask image is subjected to feature selection processing to obtain a first RGB image. The first RGB image includes: a first target annotation point represented by a pixel. Based on the radius of the first target annotation point and preset hyperparameters, the first RGB image is processed to obtain a second RGB image, wherein the second RGB image includes: a second target annotation point represented by the pixel, wherein the size of the second target annotation point is smaller than that of the first target annotation point; The second RGB image is converted into a second mask image, and the second mask image is applied to the second initial image to obtain a third RGB image; Using the second RGB image and the third RGB image, a first preset feature extraction model is trained. Under the condition of satisfying the first preset condition, a first feature extraction model is obtained. The first feature extraction model is used to identify the target object and the background region in the image to be identified. Before training the first preset feature extraction model using the second RGB image and the third RGB image, the method further includes: performing different visual augmentation processes on the second initial image to obtain a first image and a second image, wherein the first image and the second image have different perspectives; inputting the first image and the second image into the first preset feature extraction model to obtain a first perspective of the first image and a second perspective of the second image output by the first preset feature extraction model; using a third perspective, the first preset feature extraction model, and the output layer of a preset convolutional neural network model to predict a fourth perspective and obtain a prediction result, wherein the third perspective is any one of the first perspective and the second perspective, and the fourth perspective is a perspective other than the third perspective among the first perspective and the second perspective; training the first preset feature extraction model based on the prediction result and the true value of the fourth perspective until the prediction error between the prediction result and the true value satisfies a third preset condition.
2. The method according to claim 1, characterized in that, The first initial image is subjected to feature extraction processing to obtain a first mask image, including: Expand the annotation points in the first initial image to The initialization supervision block, where d is a positive integer; The second preset feature extraction model is trained using the initialization supervision block and the second initial image, and the second feature extraction model is obtained when the second preset conditions are met. The first initial image is processed by the second feature extraction model to obtain the first mask image.
3. The method according to claim 1, characterized in that, The first mask image includes: third target annotation points represented by a mask, wherein the number of the third target annotation points is the same as the number of the annotation points; Based on a preset threshold and a preset indicator function, feature selection processing is performed on the first mask image to obtain a first RGB image, including: The radius r of the first target annotation point in the first RGB image is determined by the following formula: , in, The preset threshold, The preset indicator function is defined as P, where P is the pixel value in the first mask image and N is the number of the third target annotation points.
4. The method according to claim 3, characterized in that, Based on the radius of the first target annotation point and preset hyperparameters, the first RGB image is processed to obtain a second RGB image, including: The radius R of the second target annotation point in the second RGB image is determined by the following formula: , in, The preset hyperparameters are defined as follows.
5. The method according to claim 1, characterized in that, Converting the second RGB image into a second mask image includes: The second RGB image is randomized using a preset matrix to obtain a second mask image. The size of the preset matrix is the same as the size of the matrix corresponding to the second initial image, and the preset matrix consists of 0s and 1s.
6. The method according to claim 5, characterized in that, The second RGB image is randomized using a preset matrix to obtain a second mask image, including: The position information M of each pixel in the second mask image is determined by the following formula: , Where i is the position index of the pixel in the second RGB image. This refers to the area corresponding to the second target annotation point. Z is the randomization function, and Z is the preset matrix.
7. A method for identifying a target object, characterized in that, include: Obtain an image to be identified, wherein the image to be identified includes: an object to be identified and a background area; The image to be identified is input into a first feature extraction model to obtain the recognition result output by the first feature extraction model. The recognition result includes the outline of the object to be identified. The first feature extraction model is obtained by training the model training method according to any one of claims 1 to 6.
8. A model training device, characterized in that, include: An acquisition module is used to acquire a first initial image and a second initial image, wherein the first initial image and the second initial image are both RGB images. The first initial image includes: a target object, a background area other than the target object, and annotation points. The annotation points include: a first annotation point and a second annotation point. The first annotation point is located within the target object, and the second annotation point is located within the background area. The second initial image includes: the target object and the background area. The first processing module is used to perform feature extraction processing on the first initial image to obtain a first mask image, and to perform feature selection processing on the first mask image according to a preset threshold and a preset indicator function to obtain a first RGB image, wherein the first RGB image includes: a first target annotation point represented by a pixel; The second processing module is used to process the first RGB image according to the radius of the first target annotation point and preset hyperparameters to obtain a second RGB image, wherein the second RGB image includes: a second target annotation point represented by the pixel point, wherein the size of the second target annotation point is smaller than that of the first target annotation point; The conversion module is used to convert the second RGB image into a second mask image, and apply the second mask image to the second initial image to obtain a third RGB image; The training module is used to train the first preset feature extraction model using the second RGB image and the third RGB image, and to obtain the first feature extraction model under the condition of satisfying the first preset condition. The first feature extraction model is used to identify the target object and the background region in the image to be identified. The model training device is further configured to perform the following steps before training the first preset feature extraction model using the second RGB image and the third RGB image: performing different visual augmentation processes on the second initial image to obtain a first image and a second image, wherein the first image and the second image have different perspectives; inputting the first image and the second image into the first preset feature extraction model to obtain a first perspective of the first image and a second perspective of the second image output by the first preset feature extraction model; using a third perspective, the first preset feature extraction model, and the output layer of a preset convolutional neural network model to predict a fourth perspective and obtain a prediction result, wherein the third perspective is any one of the first perspective and the second perspective, and the fourth perspective is a perspective other than the third perspective among the first perspective and the second perspective; training the first preset feature extraction model based on the prediction result and the true value of the fourth perspective until the prediction error between the prediction result and the true value satisfies a third preset condition.
9. A non-volatile storage medium, characterized in that, The non-volatile storage medium includes a stored program, wherein, when the program is executed, it controls the device where the non-volatile storage medium is located to execute the model training method according to any one of claims 1 to 6 or the target object recognition method according to claim 7.
10. An electronic device, characterized in that, include: A memory and a processor, the processor being configured to run a program stored in the memory, wherein the program, when running, executes the model training method according to any one of claims 1 to 6 or the target object recognition method according to claim 7.
11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the model training method according to any one of claims 1 to 6 or the target object recognition method according to claim 7.
Citation Information
Patent Citations
Weak supervision camouflage target detection method, computer equipment and readable storage medium
CN122574372A
