AI: 01-Identification of rose types based on deep learning of machine learning


Deep learning technology is widely used in the field of image recognition, and one of its applications is the identification of rose types. In this article, we will introduce how to use machine learning and deep learning technology to identify rose types, and provide corresponding code implementation.

1. Introduction to data sets

image.png
Before training machine learning and deep learning models, we need to prepare the corresponding data sets. In this paper, we use a dataset containing 17 different rose species, with a total of about 500 flower images.

2. Data preprocessing

Before training the model, we need to preprocess the data. Specifically, we need to convert the image into a tensor format that the model can handle and normalize the data.

The following is the code implementation of data preprocessing:

import tensorflow as tf
from tensorflow.keras.preprocessing.image import ImageDataGenerator
# 设置图片大小和批次大小
IMG_SIZE 

Guess you like

Origin blog.csdn.net/weixin_52908342/article/details/132167667