# Convolutional Neural Networks in TensorFlow week 1 Assigment

**URL:** <https://community.deeplearning.ai/t/convolutional-neural-networks-in-tensorflow-week-1-assigment/597693>\
**Category:** Convolutional Neural Networks in TensorFlow\
**Tags:** week-module-1\
**Created:** [March 24, 2024, 8:04pm UTC](https://community.deeplearning.ai/t/convolutional-neural-networks-in-tensorflow-week-1-assigment/597693 "2024-03-24T20:04:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![analugoi](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/analugoi/32/78020_2.png) [@analugoi](https://community.deeplearning.ai/u/analugoi)\
**Post date:** [March 24, 2024, 8:04pm UTC](https://community.deeplearning.ai/t/convolutional-neural-networks-in-tensorflow-week-1-assigment/597693/1 "2024-03-24T20:04:46Z")

</div>

When creating a post, please add:

- Link to the classroom item you are referring to:  
I don’t know what I am doing wrong with the week 1 assigment. When the model is trained is taking so long that never ends. It is taking more than 30 minutes to execute and then the google collab runs out of time. I am using at least 3 convolution layers and everything is working out perfect until I need to train the model.

---

<div class="post-metadata">

**Author:** ![analugoi](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/analugoi/32/78020_2.png) [@analugoi](https://community.deeplearning.ai/u/analugoi)\
**Post date:** [March 24, 2024, 8:08pm UTC](https://community.deeplearning.ai/t/convolutional-neural-networks-in-tensorflow-week-1-assigment/597693/2 "2024-03-24T20:08:45Z")

</div>

It is part of the Tensorflow Professional Certification. Course 2: Convolutional Neural Netwirks in TensorFlow, week 1. The Assignment is creating the convolutional Neural Networks, a cat and dog classifier. When using the training data: 12500 images for dogs and 12500 images for cats, it never ends.

---

<div class="post-metadata">

**Author:** ![balaji.ambresh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/balaji.ambresh/32/128697_2.png) [@balaji.ambresh](https://community.deeplearning.ai/u/balaji.ambresh)\
**Post date:** [March 25, 2024, 3:23am UTC](https://community.deeplearning.ai/t/convolutional-neural-networks-in-tensorflow-week-1-assigment/597693/3 "2024-03-25T03:23:41Z")

</div>

Please confirm the following:

1. Using a GPU for training the model.
2. No augmentations are performed on the train dataset.

Training time for this assignment is influenced by 2 factors:

1. Model architecture: Look for the number of parameters the model is training on using `model.summary()`. One way to speed up training is to reduce the number of parameters (by using more conv\* and \*pool layers) since the learnable parameters on a Dense layer goes down.
2. (Probably out of your hands in this assignment but is good to know) Stop relying on `ImageDataGenerator` (read [this](https://community.deeplearning.ai/t/is-1-week-of-course-mostely-inactual-with-new-tf-versions/430760/4))
