From 20df924c1ba80a1bb964161af56ae83a7702391c Mon Sep 17 00:00:00 2001 From: Harsh Yadav Date: Fri, 21 Oct 2022 19:00:32 +0530 Subject: [PATCH 1/3] Updated documentation of cnn_classification.py for much better understanding --- computer_vision/cnn_classification.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/computer_vision/cnn_classification.py b/computer_vision/cnn_classification.py index 6d4f19639c24..fc3fb3931995 100644 --- a/computer_vision/cnn_classification.py +++ b/computer_vision/cnn_classification.py @@ -30,9 +30,12 @@ if __name__ == "__main__": # Initialising the CNN + #(Sequential- Building the model layer by layer) classifier = models.Sequential() # Step 1 - Convolution + #Here 64,64 are the length & breadth of dataset images and 3 is for RGB channel + #(3,3) is the kernel size (filter matrix) classifier.add( layers.Conv2D(32, (3, 3), input_shape=(64, 64, 3), activation="relu") ) From eae85e2f8e31574f89c37b9eceb8a4b62f0b8922 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 21 Oct 2022 13:48:34 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- computer_vision/cnn_classification.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/computer_vision/cnn_classification.py b/computer_vision/cnn_classification.py index fc3fb3931995..18b9dec4fefa 100644 --- a/computer_vision/cnn_classification.py +++ b/computer_vision/cnn_classification.py @@ -30,12 +30,12 @@ if __name__ == "__main__": # Initialising the CNN - #(Sequential- Building the model layer by layer) + # (Sequential- Building the model layer by layer) classifier = models.Sequential() # Step 1 - Convolution - #Here 64,64 are the length & breadth of dataset images and 3 is for RGB channel - #(3,3) is the kernel size (filter matrix) + # Here 64,64 are the length & breadth of dataset images and 3 is for RGB channel + # (3,3) is the kernel size (filter matrix) classifier.add( layers.Conv2D(32, (3, 3), input_shape=(64, 64, 3), activation="relu") ) From 2a383985c551170387c6751d865c1ae0ee607f39 Mon Sep 17 00:00:00 2001 From: harshyadavcs <108284583+harshyadavcs@users.noreply.github.com> Date: Fri, 21 Oct 2022 20:14:54 +0530 Subject: [PATCH 3/3] Update computer_vision/cnn_classification.py Co-authored-by: Caeden Perelli-Harris --- computer_vision/cnn_classification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/computer_vision/cnn_classification.py b/computer_vision/cnn_classification.py index 18b9dec4fefa..59e4556e069b 100644 --- a/computer_vision/cnn_classification.py +++ b/computer_vision/cnn_classification.py @@ -34,7 +34,7 @@ classifier = models.Sequential() # Step 1 - Convolution - # Here 64,64 are the length & breadth of dataset images and 3 is for RGB channel + # Here 64,64 is the length & breadth of dataset images and 3 is for the RGB channel # (3,3) is the kernel size (filter matrix) classifier.add( layers.Conv2D(32, (3, 3), input_shape=(64, 64, 3), activation="relu")