KameliaZaman commited on
Commit
a1161f1
·
verified ·
1 Parent(s): b41a29a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +39 -0
README.md CHANGED
@@ -11,3 +11,42 @@ license: mit
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
14
+
15
+ # Butterfly Classification using CNN
16
+
17
+ ## 1. Introduction
18
+ This project focuses on classifying butterfly images using a Convolutional Neural Network (CNN). The dataset includes images of butterflies and moths, with the goal of training a model to accurately predict the species of a given butterfly image.
19
+
20
+ ## 2. Model Architecture
21
+ The CNN model used for this project is based on the ResNet50V2 architecture. The model is trained on a dataset consisting of training, validation, and test sets. The key components of the model architecture include convolutional layers, dropout for regularization, global average pooling, and fully connected layers. The model is compiled using the Adam optimizer and sparse categorical crossentropy loss.
22
+
23
+ ## 3. How-to Guide
24
+ ### 3.1. Data Preparation
25
+ - The dataset is loaded from a CSV file containing information about the butterflies and moths.
26
+ - Image paths are constructed based on the dataset information.
27
+ - The dataset is split into training, validation, and test sets.
28
+
29
+ ### 3.2. Exploratory Data Analysis (EDA)
30
+ - Visualizations are created to explore the distribution of labels in the dataset.
31
+
32
+ ### 3.3. Image Data Generation
33
+ - Image data generators are used to augment the training data.
34
+ - Training and validation data generators are created.
35
+
36
+ ### 3.4. Model Training
37
+ - The ResNet50V2-based model is constructed and compiled.
38
+ - The model is trained on the augmented training data, and its performance is monitored using validation data.
39
+ - Callbacks for reducing learning rate and early stopping are employed during training.
40
+
41
+ ### 3.5. Model Evaluation
42
+ - The trained model is evaluated on the test set to measure its accuracy.
43
+
44
+ ### 3.6. Deployment
45
+ - Gradio is utilized for deploying the trained model.
46
+ - Users can input an image, and the model will predict the butterfly species.
47
+
48
+ ## 4. License
49
+ This project is licensed under the [MIT License](LICENSE).
50
+
51
+ ## 5. Contributors
52
+ - Kamelia Zaman Moon