WO2023201963A1 - 图像理解方法、装置、设备及介质 - Google Patents
图像理解方法、装置、设备及介质 Download PDFInfo
- Publication number
- WO2023201963A1 WO2023201963A1 PCT/CN2022/116913 CN2022116913W WO2023201963A1 WO 2023201963 A1 WO2023201963 A1 WO 2023201963A1 CN 2022116913 W CN2022116913 W CN 2022116913W WO 2023201963 A1 WO2023201963 A1 WO 2023201963A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- text
- model
- training
- function value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/30—Semantic analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
Definitions
- This application relates to the field of artificial intelligence, and in particular to image understanding methods, devices, equipment and media.
- Image Caption uses a computer system to interpret images to understand the external world just like the human visual system. The purpose is to obtain target information in the image to be detected and use this information to obtain target text data.
- the social media communication industry is developed. People are expressing personal opinions all the time on domestic social software Douyin and Weibo, as well as foreign social software Twitter and Instagram. These remarks usually appear in the form of pictures and texts, and the text is usually a text explanation related to the image set by the user.
- the inventor realized that due to the cryptic nature of language, that is, the relationship between images and text is a weak correlation, therefore in this practical situation, there is a problem in the prior art using computational models to try to understand people's social language.
- Cognitive Impairment The assumption of a strong correlation between text and images is different from the actual social media data, which is caused by humans having richer background knowledge compared to computational models. Therefore, ordinary image understanding methods are still not applicable in social media-oriented scenarios.
- this application discloses an image understanding method, including:
- this application discloses an image understanding device, including:
- the graphic data acquisition module is used to construct the first text data corresponding to the training image based on the original text data corresponding to the training image, and to process the training image using a simple visual language model to obtain the second text data corresponding to the training image. ;
- the model initialization module is used to construct image-text pairs based on the training image, the first text data and the second text data to obtain the corresponding image-text pair set, and initialize the image understanding model;
- the model parameter update module is used to select image-text pairs as training data from the image-text pair set, and use the current image understanding model to calculate the overall model loss function value corresponding to the training data, and then perform image understanding based on the overall model loss function value.
- the parameters in the model are updated;
- the model determination module is used to jump back to the step of selecting image-text pairs as training data from the image-text pair set when the preset iteration end conditions are not currently met, until the preset iteration end conditions are met, and the current output
- the image understanding model serves as the target image understanding model
- the image understanding module is used to use the target image understanding model to obtain target text data corresponding to the image to be detected.
- this application discloses an electronic device, including: a memory and one or more processors.
- Computer readable instructions are stored in the memory.
- the computer readable instructions are executed by the one or more processors, such that The above one or more processors execute the steps of the above disclosed image understanding method.
- the present application discloses one or more non-volatile computer-readable storage media storing computer-readable instructions.
- the above-mentioned computer-readable instructions are executed by one or more processors, the above-mentioned one or more processors
- the processor executes the steps of the aforementioned disclosed image understanding method.
- Figure 1 is a flow chart of an image understanding method disclosed in this application according to one or more embodiments
- Figure 2 is a flow chart of a specific first text data construction method disclosed in this application according to one or more embodiments;
- Figure 3 is a flow chart of a specific image understanding method disclosed in this application according to one or more embodiments.
- Figure 4 is a flow chart of a specific image understanding method disclosed in this application according to one or more embodiments.
- Figure 5 is a flow chart of a specific image understanding method disclosed in this application according to one or more embodiments.
- Figure 6 is a schematic structural diagram of an image understanding device disclosed in this application according to one or more embodiments.
- Figure 7 is a structural diagram of an electronic device disclosed according to one or more embodiments of this application.
- this application accordingly provides an image understanding solution, which realizes image understanding that is closer to real application scenarios and can be oriented to social media.
- an embodiment of the present application discloses an image understanding method.
- the method is explained by taking its application to computer equipment as an example.
- the method includes:
- Step S11 Construct first text data corresponding to the training image based on the original text data corresponding to the training image, and process the training image using a simple visual language model to obtain second text data corresponding to the training image.
- Original text features that is, using CLIP (Contrastive Language-Image Pre-training) in the image understanding model to obtain the semantic information of the original text data; using the image encoder in the image understanding model to obtain training images global features and shallow features, and calculate the correlation vector between the original text data and the training image based on the original text features, global features and shallow features, and the correlation vector can be used to train the CLIP-based image understanding model; calculation The product of the associated vector and the preset hyperparameter, and the updated text feature is obtained based on the sum of the product and the original text feature, and then the first text data is obtained based on the updated text feature, so that the subsequent text data can be paired based on the first text data and the second text data
- the image understanding model is tested, in which the preset hyperparameters can be set according
- Step S12 Construct an image-text pair based on the training image, the first text data and the second text data to obtain a corresponding image-text pair set, and initialize the image understanding model.
- the training image (I 1 ) corresponds to the first text data (t 1 weak ), and the training image (I 1 ) corresponds to the second text data (t 1 strong ).
- Step S13 Select the image-text pairs used as training data from the image-text pair set, and use the current image understanding model to calculate the overall model loss function value corresponding to the training data, and then calculate the parameters in the image understanding model based on the overall model loss function value. Make an update.
- Step S14 Determine whether the preset iteration end condition is currently met. If not, jump back to the step of selecting image-text pairs used as training data from the image-text pair set until the preset iteration end condition is met, and the currently output image
- the understanding model serves as the target image understanding model.
- Step S15 Use the target image understanding model to obtain target text data corresponding to the image to be detected.
- determining whether the preset iteration end condition is currently met may be to determine whether the preset iteration number has been reached. For example, the preset iteration number is 1 million. If the current iteration number has not reached 1 million, jump to The step of selecting image-text pairs used as training data from the image-text pair set. If the number of times reaches 1 million, the training will be stopped. It can be understood that the parameters of the current image understanding model will be updated during each iteration, and the model output by the last iteration is the target image understanding model, and the target image understanding model is used to output the target of the image to be detected. text data.
- this application first constructs the first text data corresponding to the training image based on the original text data corresponding to the training image, and uses a simple visual language model to process the training image to obtain the second text data corresponding to the training image; based on the training The image, the first text data and the second text data construct an image-text pair to obtain the corresponding image-text pair set, and initialize the image understanding model; select the image-text pair used as training data from the image-text pair set, and use the current
- the image understanding model calculates the overall model loss function value corresponding to the training data, and then updates the parameters in the image understanding model based on the overall model loss function value; determines whether the preset iteration end conditions are currently met, and if not, jumps back to the image text
- this application constructs weakly relevant first text data corresponding to the training image based on the original text data corresponding to the training image, so that the subsequent image understanding model can mine the weakly relevant semantic relationship between the training image and the first text data. , obtain rich semantic level supervision; process the training image through a simple visual language model to obtain the second text data that is strongly related to the training image, so that the overall loss of the model can be calculated based on the first text data and the second text data.
- the embodiment of the present application discloses a specific image understanding method, including:
- Step S21 Obtain the first text data corresponding to the training image based on the correlation vector between the training image and the original text data and the original feature data of the original text data, and use a simple visual language model to process the training image to obtain the data corresponding to the training image. the second text data.
- obtaining the first text data corresponding to the training image based on the correlation vector between the training image and the original text data and the original feature data of the original text data specifically includes: obtaining the training image and the original text data corresponding to the training image; Extract the original text features of the original text data, and calculate the correlation vector between the training image and the original text data; use the correlation vector to update the original text features to obtain the first text data.
- CLIP consisting of two encoders in the image understanding model.
- the two encoders include an image encoder and a text encoder.
- the image encoder can be ResNet or ViT (Vision Transformer, visual depth model).
- the knowledge learned in the process is transferred to the downstream classification task.
- a simple and effective method is to construct a set of text prompts based on the template, such as "a photo of a [CLS]", where [CLS] can be the category of the actual picture. replace. Then, given an image, CLIP is used to calculate the similarity between the image and the text prompt in the embedding space, and the class with the highest score is used as the final prediction.
- the text template can be of K categories, and the text template contains a text prompt (prompt), such as "[V] 1 [V] 2 ...[V] M [CLS]” , it should be noted that "[V] 1 [V] 2 ...[V] M " and "[CLS]” are both unfixed words, so the text template is more flexible and close to the actual application scenario;
- K represents the number of categories
- C represents the number of channels
- t represents the updated original text feature
- t q represents the original text feature
- ⁇ represents the hyperparameter
- v represents the correlation vector
- calculating the association vector between the training image and the original text data specifically includes: using the image encoder in the image understanding model to calculate the global features and shallow features corresponding to the training image; based on the global features and shallow features features, and use the decoder of the deep model in the image understanding model to calculate the correlation vector between the training image and the original text data.
- an image encoder needs to be used to extract the feature vector of the training image.
- the feature map mapping is expressed as Preload CLIP in the image understanding model, and use CLIP to introduce an attention pooling layer (Attention Pooling) in the ResNet (residual network) encoder.
- CLIP first Perform global average pooling to obtain global features of training images where x 4 represents the feature map of the fourth stage, represents the Euclidean space, H 4 represents the height of the feature map, W 4 represents the width of the feature map, C represents the number of feature map channels, and the connected features containing the feature map and global characteristics are sent to the multi-head attention layer (multi head self attention, That is MHSA), which involves the following formula:
- z represents shallow features
- x 4 represents the feature map of the fourth stage.
- the association vector is obtained based on global features, shallow features and original text features, and the decoder of the deep model is used.
- a deep model composed of an attention mechanism is used to obtain the association vector, involving the formula as follows:
- v represents the association vector
- t represents the original text feature
- z represents shallow features
- s represents the pixel text score
- H 4 represents the height of the feature map
- W 4 represents the width of the feature map
- C represents the number of feature map channels.
- Step S22 Construct an image-text pair based on the training image, the first text data and the second text data to obtain a corresponding image-text pair set, and initialize the image understanding model.
- Step S23 Select the image-text pairs used as training data from the image-text pair set, and use the current image understanding model to calculate the overall model loss function value corresponding to the training data, and then calculate the parameters in the image understanding model based on the overall model loss function value. Make an update.
- the parameters in the image understanding model are updated based on the overall model loss function value, which specifically includes: based on the model overall loss function value and the adaptive moment estimation optimizer, and using the gradient descent optimization algorithm to update the parameters of the image understanding model.
- the overall model loss function value which specifically includes: based on the model overall loss function value and the adaptive moment estimation optimizer, and using the gradient descent optimization algorithm to update the parameters of the image understanding model.
- Make an update First, use the current image understanding model to calculate the pixel-text matching loss function value and text distance loss function value of the image-text pair, and determine the overall model loss function value based on the pixel-text matching loss function value and text distance loss function value; then based on the overall model loss function value Loss function value and adaptive moment estimation optimizer (Adam), and use gradient descent optimization algorithm to update the parameters of the image understanding model.
- Adam adaptive moment estimation optimizer
- Step S24 Determine whether the preset iteration end condition is currently met. If not, jump back to the step of selecting image-text pairs used as training data from the image-text pair set until the preset iteration end condition is met, and the currently output image
- the understanding model serves as the target image understanding model.
- Step S25 Use the target image understanding model to obtain target text data corresponding to the image to be detected.
- this application constructs the first text data weakly related to the training image based on the original text data corresponding to the training image and its original text features. It not only uses the second text data strongly related to the training image as the training data, but also uses the second text data that is strongly related to the training image as the training data. On the one hand, it avoids the inaccuracy of the training data due to the difference between the second text data and the actual text data. On the other hand, using the weakly related first text data can enrich the weakly related semantic relationship between the image and the text and the semantic level supervision. , more flexible and more realistic.
- the embodiment of the present application discloses a specific image understanding method, including:
- Step S31 Construct first text data corresponding to the training image based on the original text data corresponding to the training image, and process the training image using a simple visual language model to obtain second text data corresponding to the training image.
- the images published in social networking sites and the text corresponding to the images are first crawled as training images and original text data respectively.
- the "round cake” picture is obtained as the training image
- the corresponding original text data " "Happy birthday, Make a wish” obtain the "dog and man” picture as a training image
- the corresponding original text data "We are friends forever” obtain the original text data "We are friends forever”.
- the original text data "We are friends forever” and the corresponding training images are input into the image understanding model.
- the text encoder in the image understanding model will be based on the preset K category text templates and the text templates.
- the included text prompt obtains the first text data "The man is sitting with his dog” corresponding to the original text data, so that the first text data can be subsequently used to calculate the pixel text matching loss function value and the text distance loss function value.
- Step S32 Construct an image-text pair based on the training image, the first text data and the second text data to obtain a corresponding image-text pair set, and initialize the image understanding model.
- Step S33 Select the image-text pair used as training data from the image-text pair set, and use the current image understanding model to calculate the pixel-text matching loss function value and text distance loss function value of the image-text pair.
- the current image understanding model is used to calculate the pixel-text matching loss function value and text distance loss function value of the image-text pair, which specifically includes: calculating and image-text centering training through the image encoder in the current image understanding model.
- the shallow features corresponding to the image based on the shallow features, the first text feature of the first text data in the image-text pair and the second text feature of the second text data, and use the image understanding model to calculate the pixel-text matching loss of the image-text pair Function value and text distance loss function value.
- the image understanding model to calculate the pixel-text matching loss function value of the image-text pair and the text distance loss function value, which may specifically include: using an image understanding model to determine the regularized first text feature and the regularized second text feature; using shallow features, the regularized first text feature and the regularized second text feature to calculate the pixel-text matching loss function value of the image-text pair, and use the regularized first text feature and the regularized second text feature to calculate the pixel-text matching loss function value of the image-text pair. Text distance loss function value.
- L p&t represents the pixel text matching loss function value
- t strong represents the text feature of the second text data
- t weak represents the text feature of the first text data
- T represents the transposition
- L t represents the text distance loss function value
- Step S34 Determine the overall loss function value of the model based on the pixel-text matching loss function value and the text distance loss function value, and update the parameters in the image understanding model based on the overall model loss function value.
- the sum of the pixel-text matching loss function value and the text distance loss function value is calculated, and the sum of the pixel-text matching loss function value and the text distance loss function value is used as the overall loss function value of the model, where the calculation formula is as follows:
- L represents the overall loss function value of the model
- L p&t represents the pixel text matching loss function value
- L t represents the text distance loss function value
- Step S35 Determine whether the preset iteration end condition is currently met. If not, jump back to the step of selecting image-text pairs used as training data from the image-text pair set until the preset iteration end condition is met, and the currently output image
- the understanding model serves as the target image understanding model.
- Step S36 Use the target image understanding model to obtain target text data corresponding to the image to be detected.
- this application uses the current image understanding model to calculate the pixel-text matching loss function value and text distance loss function value of the image-text pair, and determines the overall loss function value of the model based on the pixel-text matching loss function value and the text distance loss function value. , and then update the parameters in the image understanding model based on the overall loss function value of the model to optimize the image understanding model until the preset iteration end conditions are met, and the optimal target image understanding model is obtained, so that the target image understanding model can be obtained Target text data corresponding to the image to be detected.
- an image understanding device which includes:
- the graphic data acquisition module 11 is configured to construct first text data corresponding to the training image based on the original text data corresponding to the training image, and process the training image using a simple visual language model to obtain the second text corresponding to the training image. data;
- the model initialization module 12 is used to construct an image-text pair based on the training image, the first text data and the second text data to obtain the corresponding image-text pair set, and initialize the image understanding model;
- the model parameter update module 13 is used to select image-text pairs used as training data from the image-text pair set, and use the current image understanding model to calculate the model overall loss function value corresponding to the training data, and then calculate the image based on the model overall loss function value. Understand the parameters in the model and update them;
- the model determination module 14 is used to determine whether the preset iteration end condition is currently met, and if not, jump back to the step of selecting image-text pairs used as training data from the image-text pair set, until the preset iteration end condition is met, and The currently output image understanding model is used as the target image understanding model.
- the image understanding module 15 is configured to use the target image understanding model to obtain target text data corresponding to the image to be detected.
- this application first constructs the first text data corresponding to the training image based on the original text data corresponding to the training image, and uses a simple visual language model to process the training image to obtain the second text data corresponding to the training image; based on the training The image, the first text data and the second text data construct an image-text pair to obtain the corresponding image-text pair set, and initialize the image understanding model; select the image-text pair used as training data from the image-text pair set, and use the current
- the image understanding model calculates the overall model loss function value corresponding to the training data, and then updates the parameters in the image understanding model based on the overall model loss function value; determines whether the preset iteration end conditions are currently met, and if not, jumps back to the image text The step of selecting image-text pairs used as training data until the preset iteration end conditions are met, and using the currently output image understanding model as the target image understanding model, so as to use the target image understanding model to obtain the target corresponding to the image to be detected.
- this application constructs weakly relevant first text data corresponding to the training image based on the original text data corresponding to the training image, so that the subsequent image understanding model can mine the weakly relevant semantic relationship between the training image and the first text data. , obtain rich semantic level supervision; process the training image through a simple visual language model to obtain the second text data that is strongly related to the training image, so that the overall loss of the model can be calculated based on the first text data and the second text data.
- FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- the electronic device may be a computer device, and the computer device may be a terminal or a server. Specifically, it may include: at least one processor 21, at least one memory 22, power supply 23, communication interface 24, input and output interface 25 and communication bus 26.
- the memory 22 is used to store computer readable instructions, which are loaded and executed by the processor 21 to implement the relevant steps in the image understanding method executed by the computer device disclosed in any of the foregoing embodiments.
- the power supply 23 is used to provide operating voltage for each hardware device on the computer device 20;
- the communication interface 24 can create a data transmission channel between the computer device 20 and external devices, and the communication protocol it follows can be applicable Any communication protocol of the technical solution of this application is not specifically limited here;
- the input and output interface 25 is used to obtain external input data or output data to the external world, and its specific interface type can be selected according to specific application needs. Here Not specifically limited.
- the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc.
- the processor 21 can adopt at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), and PLA (Programmable Logic Array, programmable logic array).
- the processor 21 may also include a main processor and a co-processor.
- the main processor is a processor used to process data in the wake-up state, also called CPU (Central Processing Unit, central processing unit); the co-processor is A low-power processor used to process data in standby mode.
- the processor 21 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is responsible for rendering and drawing the content that needs to be displayed on the display screen.
- the processor 21 may also include an AI (Artificial Intelligence, artificial intelligence) processor, which is used to process computing operations related to machine learning.
- AI Artificial Intelligence, artificial intelligence
- the memory 22, as a carrier for resource storage can be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.
- the resources stored thereon include the operating system 221, computer readable instructions 222 and data 223, etc., and the storage method can be short-term. Storage or permanent storage.
- the operating system 221 is used to manage and control each hardware device and computer readable instructions 222 on the computer device 20 to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21. It can be Windows, Unix, Linux wait.
- the computer-readable instructions 222 may further include computer-readable instructions that can be used to complete other specific tasks. instruction.
- the data 223 may also include data collected by its own input and output interface 25, etc.
- embodiments of the present application also disclose a computer-readable storage medium.
- Computer-readable instructions are stored in the storage medium.
- the image processing disclosed in any of the foregoing embodiments is realized. Understand the methodological steps performed in the process.
- embodiments of the present application also provide a non-volatile computer-readable storage medium.
- Computer-readable instructions are stored in the non-volatile computer-readable storage medium.
- the computer-readable instructions are processed by one or more processors. When executed, the disclosed method steps executed in the image understanding process in any of the above embodiments may be implemented.
- Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory may include random access memory (RAM) or external cache memory.
- RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
- SRAM static RAM
- DRAM dynamic RAM
- SDRAM synchronous DRAM
- DDRSDRAM double data rate SDRAM
- ESDRAM enhanced SDRAM
- SLDRAM synchronous chain Synchlink DRAM
- Rambus direct RAM
- DRAM direct memory bus dynamic RAM
- RDRAM memory bus dynamic RAM
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Image Analysis (AREA)
Abstract
Description
Claims (20)
- 一种图像理解方法,其特征在于,包括:基于训练图像对应的原始文本数据构建与所述训练图像对应的第一文本数据,并利用简单视觉语言模型对所述训练图像进行处理,以得到与所述训练图像对应的第二文本数据;基于所述训练图像、所述第一文本数据和所述第二文本数据构建图像文本对,以得到相应的图像文本对集,并初始化图像理解模型;从所述图像文本对集中选取用作训练数据的所述图像文本对,并利用当前的所述图像理解模型计算所述训练数据对应的模型总体损失函数值,然后基于所述模型总体损失函数值对所述图像理解模型中的参数进行更新;在当前未满足预设迭代结束条件时,重新跳转至所述从所述图像文本对集中选取用作训练数据的所述图像文本对的步骤,直到满足所述预设迭代结束条件,并将当前输出的所述图像理解模型作为目标图像理解模型;和利用所述目标图像理解模型获取与待检测图像对应的目标文本数据。
- 根据权利要求1所述的图像理解方法,其特征在于,所述方法还包括:在当前满足所述预设迭代结束条件时,将当前输出的所述图像理解模型作为目标图像理解模型。
- 根据权利要求1所述的图像理解方法,其特征在于,所述训练图像通过爬取社交网站中以及公开发布的图像得到。
- 根据权利要求1所述的图像理解方法,其特征在于,所述基于训练图像对应的原始文本数据构建与所述训练图像对应的第一文本数据,包括:获取训练图像以及与所述训练图像对应的原始文本数据;提取所述原始文本数据的原始文本特征,并计算所述训练图像和所述原始文本数据之间的关联向量;和利用所述关联向量对所述原始文本特征进行更新,以得到所述第一文本数据。
- 根据权利要求4所述的图像理解方法,其特征在于,所述利用所述关联向量对所述原始文本特征进行更新,包括:计算所述关联向量与预设超参的乘积,并基于乘积与原始文本特征的和获取更新后文本特征,然后基于更新后文本特征得到第一文本数据。
- 根据权利要求5所述的图像理解方法,其特征在于,所述计算所述关联向量与预设超参的乘积,并基于乘积与原始文本特征的和获取更新后文本特征,然后基于更新后文本特征得到第一文本数据所涉及的公式为:t←t q+γv其中,t表示更新后的原始文本特征,t q表示原始文本特征,γ表示预设超参数,v表示关联向量。
- 根据权利要求4所述的图像理解方法,其特征在于,所述计算所述训练图像和所述原始文本数据之间的关联向量,包括:利用所述图像理解模型中的图像编码器计算出与所述训练图像对应的全局特征和浅层特征;和基于所述全局特征和所述浅层特征,并利用所述图像理解模型中的深度模型的解码器计算出所述训练图像和所述原始文本数据之间的关联向量。
- 根据权利要求7所述的图像理解方法,其特征在于,所述图像编码器包括图像编码器和文本编码器。
- 根据权利要求7所述的图像理解方法,其特征在于,所述图像编码器ResNet或Vision Transformer视觉深度模型。
- 根据权利要求1所述的图像理解方法,其特征在于,所述利用当前的所述图像理解模型计算所述训练数据对应的模型总体损失函数值,包括:利用当前的所述图像理解模型计算所述图像文本对的像素文本匹配损失函数值和文本距离损失函数值,并基于所述像素文本匹配损失函数值以及所述文本距离损失函数值确定模型总体损失函数值。
- 根据权利要求11所述的图像理解方法,其特征在于,所述利用当前的所述图像理解模型计算所述图像文本对的像素文本匹配损失函数值和文本距离损失函数值,包括:通过当前的所述图像理解模型中的图像编码器计算与所述图像文本对中所述训练图像对应的浅层特征;和基于所述浅层特征、所述图像文本对中所述第一文本数据的第一文本特征以及所述第二文本数据的第二文本特征,并利用所述图像理解模型计算所述图像文本对的所述像素文本匹配损失函数值和所述文本距离损失函数值。
- 根据权利要求12所述的图像理解方法,其特征在于,所述基于所述浅层特征、所述图像文本对中所述第一文本数据的第一文本特征以及所述第二文本数据的第二文本特征,并利用所述图像理解模型计算所述图像文本对的所述像素文本匹配损失函数值和所述文本距离损失函数值,包括:利用所述图像理解模型确定经过正则化处理的所述第一文本特征以及经过正则化处理的所述第二文本特征;和通过所述浅层特征、经过正则化处理的所述第一文本特征和经过正则化处理的所述第二文本特征计算出所述图像文本对的所述像素文本匹配损失函数值,并利用经过正则化处理的所述第一文本特征和经过正则化处理的所述第二文本特征计算出所述图像文本对的所述文本距离损失函数值。
- 根据权利要求1至15任一项所述的图像理解方法,其特征在于,所述基于所述模型总体损失函数值对所述图像理解模型中的参数进行更新,包括:基于所述模型总体损失函数值和自适应矩估计优化器,并利用梯度下降优化算法对所述图像理解模型的参数进行更新。
- 根据权利要求1至15任一项所述的图像理解方法,其特征在于,所述基于所述模型总体损失函数值对所述图像理解模型中的参数进行更新,包括:利用当前的图像理解模型计算图像文本对的像素文本匹配损失函数值和文本距离损失函数值,并基于像素文本匹配损失函数值以及文本距离损失函数值确定模型总体损失函数值;然后基于模型总体损失函数值和自适应矩估计优化器,并利用梯度下降优化算法对所述图像理解模型的参数进行更新。
- 一种图像理解装置,其特征在于,包括:图文数据获取模块,用于基于训练图像对应的原始文本数据构建与所述训练图像对应的第一文本数据,并利用简单视觉语言模型对所述训练图像进行处理,以得到与所述训练图像对应的第二文本数据;模型初始化模块,用于基于所述训练图像、所述第一文本数据和所述第二文本数据构建图像文本对,以得到相应的图像文本对集,并初始化图像理解模型;模型参数更新模块,用于从所述图像文本对集中选取用作训练数据的所述图像文本对,并利用当前的所述图像理解模型计算所述训练数据对应的模型总体损失函数值,然后基于所述模型总体损失函数值对所述图像理解模型中的参数进行更新;模型确定模块,用于在当前未满足预设迭代结束条件时,重新跳转至所述从所述图像文本对集中选取用作训练数据的所述图像文本对的步骤,直到满足所述预设迭代结束条件,并将当前输出的所述图像理解模型作为目标图像理解模型;和图像理解模块,用于利用所述目标图像理解模型获取与待检测图像对应的目标文本数据。
- 一种电子设备,其特征在于,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行如权利要求1至17任一项所述的图像理解方法的步骤。
- 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如权利要求1至17任一项所述的图像理解方法的步骤。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210401296.2A CN114511043B (zh) | 2022-04-18 | 2022-04-18 | 图像理解方法、装置、设备及介质 |
| CN202210401296.2 | 2022-04-18 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023201963A1 true WO2023201963A1 (zh) | 2023-10-26 |
Family
ID=81555166
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/116913 Ceased WO2023201963A1 (zh) | 2022-04-18 | 2022-09-02 | 图像理解方法、装置、设备及介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN114511043B (zh) |
| WO (1) | WO2023201963A1 (zh) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116664857A (zh) * | 2023-06-12 | 2023-08-29 | 平安科技(深圳)有限公司 | 图像细粒度识别方法及装置、存储介质、计算机设备 |
| CN117789192A (zh) * | 2024-02-26 | 2024-03-29 | 浪潮计算机科技有限公司 | 基本输入输出系统的设置项管理方法、装置、设备及介质 |
| CN118887493A (zh) * | 2024-09-12 | 2024-11-01 | 腾讯科技(深圳)有限公司 | Clip模型的训练、推理方法、装置、设备和介质 |
| CN119131196A (zh) * | 2024-08-23 | 2024-12-13 | 西安电子科技大学 | 一种基于遥感图文对比预训练特征的模态对齐与多尺度提取遥感图像描述生成方法、系统、设备及介质 |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114511043B (zh) * | 2022-04-18 | 2022-07-08 | 苏州浪潮智能科技有限公司 | 图像理解方法、装置、设备及介质 |
| CN114648681B (zh) * | 2022-05-20 | 2022-10-28 | 浪潮电子信息产业股份有限公司 | 一种图像生成方法、装置、设备及介质 |
| KR102506404B1 (ko) * | 2022-06-10 | 2023-03-07 | 큐에라소프트(주) | 훈련된 언어 모델을 이용한 의사결정 시뮬레이션 장치 및 방법 |
| CN116204672B (zh) * | 2023-02-21 | 2025-11-28 | 百度在线网络技术(北京)有限公司 | 图像识别、模型训练方法、装置、设备及存储介质 |
| CN116469110A (zh) * | 2023-04-18 | 2023-07-21 | 平安科技(深圳)有限公司 | 图像分类方法、装置、电子设备及计算机可读存储介质 |
| CN116580832A (zh) * | 2023-05-05 | 2023-08-11 | 暨南大学 | 基于视频数据的老年痴呆症辅助诊断系统及其方法 |
| CN116721334B (zh) * | 2023-08-11 | 2023-11-21 | 腾讯科技(深圳)有限公司 | 图像生成模型的训练方法、装置、设备及存储介质 |
| CN116824278B (zh) * | 2023-08-29 | 2023-12-19 | 腾讯科技(深圳)有限公司 | 图像内容分析方法、装置、设备和介质 |
| WO2026048085A1 (ja) * | 2024-09-02 | 2026-03-05 | 三菱電機株式会社 | 作業分析装置、プログラム及び作業分析方法 |
| CN119229238B (zh) * | 2024-11-28 | 2025-04-29 | 浪潮电子信息产业股份有限公司 | 视觉语言模型训练方法、设备、介质及计算机程序产品 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110188819A (zh) * | 2019-05-29 | 2019-08-30 | 电子科技大学 | 一种基于信息增益的cnn和lstm图像高层语义理解方法 |
| CN113792113A (zh) * | 2020-07-31 | 2021-12-14 | 北京京东尚科信息技术有限公司 | 视觉语言模型获得及任务处理方法、装置、设备及介质 |
| CN114067321A (zh) * | 2022-01-14 | 2022-02-18 | 腾讯科技(深圳)有限公司 | 一种文本检测模型训练方法、装置、设备及存储介质 |
| CN114511043A (zh) * | 2022-04-18 | 2022-05-17 | 苏州浪潮智能科技有限公司 | 图像理解方法、装置、设备及介质 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113792112B (zh) * | 2020-07-31 | 2025-07-18 | 北京京东尚科信息技术有限公司 | 视觉语言任务处理系统、训练方法、装置、设备及介质 |
-
2022
- 2022-04-18 CN CN202210401296.2A patent/CN114511043B/zh active Active
- 2022-09-02 WO PCT/CN2022/116913 patent/WO2023201963A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110188819A (zh) * | 2019-05-29 | 2019-08-30 | 电子科技大学 | 一种基于信息增益的cnn和lstm图像高层语义理解方法 |
| CN113792113A (zh) * | 2020-07-31 | 2021-12-14 | 北京京东尚科信息技术有限公司 | 视觉语言模型获得及任务处理方法、装置、设备及介质 |
| CN114067321A (zh) * | 2022-01-14 | 2022-02-18 | 腾讯科技(深圳)有限公司 | 一种文本检测模型训练方法、装置、设备及存储介质 |
| CN114511043A (zh) * | 2022-04-18 | 2022-05-17 | 苏州浪潮智能科技有限公司 | 图像理解方法、装置、设备及介质 |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116664857A (zh) * | 2023-06-12 | 2023-08-29 | 平安科技(深圳)有限公司 | 图像细粒度识别方法及装置、存储介质、计算机设备 |
| CN116664857B (zh) * | 2023-06-12 | 2025-12-19 | 平安科技(深圳)有限公司 | 图像细粒度识别方法及装置、存储介质、计算机设备 |
| CN117789192A (zh) * | 2024-02-26 | 2024-03-29 | 浪潮计算机科技有限公司 | 基本输入输出系统的设置项管理方法、装置、设备及介质 |
| CN117789192B (zh) * | 2024-02-26 | 2024-06-11 | 浪潮计算机科技有限公司 | 基本输入输出系统的设置项管理方法、装置、设备及介质 |
| CN119131196A (zh) * | 2024-08-23 | 2024-12-13 | 西安电子科技大学 | 一种基于遥感图文对比预训练特征的模态对齐与多尺度提取遥感图像描述生成方法、系统、设备及介质 |
| CN118887493A (zh) * | 2024-09-12 | 2024-11-01 | 腾讯科技(深圳)有限公司 | Clip模型的训练、推理方法、装置、设备和介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114511043B (zh) | 2022-07-08 |
| CN114511043A (zh) | 2022-05-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2023201963A1 (zh) | 图像理解方法、装置、设备及介质 | |
| US20240242125A1 (en) | Learning data augmentation policies | |
| US12400121B2 (en) | Regularized neural network architecture search | |
| US11544573B2 (en) | Projection neural networks | |
| WO2022007823A1 (zh) | 一种文本数据处理方法及装置 | |
| CN115081615B (zh) | 一种神经网络的训练方法、数据的处理方法以及设备 | |
| CN115438176A (zh) | 下游任务模型生成及任务执行的方法和设备 | |
| CN113032585B (zh) | 一种基于文档结构和外部知识的文档级实体关系抽取方法 | |
| US11900222B1 (en) | Efficient machine learning model architecture selection | |
| WO2021212601A1 (zh) | 一种基于图像的辅助写作方法、装置、介质及设备 | |
| CN111767694B (zh) | 文本生成方法、装置和计算机可读存储介质 | |
| US11481638B2 (en) | Augmenting neural networks | |
| US20220004849A1 (en) | Image processing neural networks with dynamic filter activation | |
| WO2024259886A1 (zh) | 图像分类方法、装置、设备、存储介质和程序产品 | |
| CN114818737B (zh) | 科技论文数据文本语义特征提取方法、系统及存储介质 | |
| CN119251680A (zh) | 基于提示学习的遥感图像分类方法 | |
| CN119293187A (zh) | 一种数据处理方法、装置及存储介质 | |
| CN115130451B (zh) | 故事的生成方法、装置、电子设备及存储介质 | |
| CN117708698A (zh) | 一种类别确定方法、装置、设备及存储介质 | |
| CN117011403A (zh) | 生成图像数据的方法及装置、训练方法、电子设备 | |
| CN114781477A (zh) | 一种训练文本匹配模型的方法、装置以及存储介质 | |
| CN116664981B (zh) | 图像生成模型的训练方法、装置、终端及存储介质 | |
| US20260011061A1 (en) | Restyling images using a diffusion model with text conditioning and a depth map | |
| CN120804718A (zh) | 用于模型训练的方法、装置、设备、存储介质和程序产品 | |
| CN121099083A (zh) | 图片故事的视频生成方法、设备、介质和计算机程序产品 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22938188 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22938188 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17/03/2025) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22938188 Country of ref document: EP Kind code of ref document: A1 |







