Image classification method and device, electronic equipment and storage medium
A classification method and image type technology, applied in the field of image processing, can solve problems such as heavy workload, poor image classification accuracy of machine learning models, and increase the difficulty of machine learning model training, so as to improve accuracy, reduce total training time, The effect of reducing processing difficulty and processing time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0022] figure 1 It is a schematic flow chart of an image classification method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where an image classification model trained in an unsupervised manner is used to classify images. classification device to perform, specifically including the following steps:
[0023] S110. Acquire an image to be processed, and input the image into a pre-trained target image classification model, wherein the target image classification model is based on the first sample with a standard type label and the first sample without a standard type label The two samples are trained by unsupervised learning.
[0024] S120. Determine the image type to which the image to be processed belongs according to an output result of the target image classification model.
[0025] Wherein, the image to be processed may be an image locally stored by the electronic device, or may be an image collected in real time by an im...
Embodiment 2
[0033] figure 2 It is a schematic flow chart of an image classification method provided in Embodiment 2 of the present invention. On the basis of the above embodiments, an unsupervised training method for a target image classification model is provided. The method specifically includes:
[0034] S210. Establish a first image classification model according to the first samples with standard type labels.
[0035] S220. Predict the second sample without a standard type label according to the first image classification model, and generate a predicted type label of the second sample according to the prediction result.
[0036] S230. Determine a first loss function according to the first sample, the standard type label of the first sample, the second sample, and the predicted type label of the second sample.
[0037] S240. Adjust parameters of the first image classification model according to the first loss function to generate the target image classification model.
[0038] S250...
Embodiment 3
[0060] Figure 4 It is a schematic flow chart of an image classification method provided in Embodiment 3 of the present invention. On the basis of the above embodiments, the unsupervised training method of the target image classification model is optimized. The method specifically includes:
[0061] S310. Establish a first image classification model according to the first samples with standard type labels.
[0062] S320. Predict the second sample without a standard type label according to the first image classification model, and generate a predicted type label of the second sample according to a prediction result.
[0063] S330. Determine a first type center point of each image type according to the first sample and the standard type label of the first sample.
[0064] S340. Determine a second type center point of each image type according to the second sample and the predicted type label of the second sample.
[0065] S350. Determine a third type of center point of each im...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com