# Convolutional Neural Networks in TensorFlow

**URL:** https://dlai.staged-by-discourse.com/c/course-q-a/tensorflow-developer-professional/tf1-course-2/80.md

[Latest](https://dlai.staged-by-discourse.com/latest.md) · [Categories](https://dlai.staged-by-discourse.com/categories.md) · [Tags](https://dlai.staged-by-discourse.com/tags.md)

---

## [About the Convolutional Neural Networks in TensorFlow category](https://dlai.staged-by-discourse.com/t/about-the-convolutional-neural-networks-in-tensorflow-category/24955)

<div class="topic-metadata">

**Author:** [@agparth](https://dlai.staged-by-discourse.com/u/agparth)\
**Replies:** 0\
**Last updated:** [August 3, 2021, 6:33pm UTC](https://dlai.staged-by-discourse.com/t/about-the-convolutional-neural-networks-in-tensorflow-category/24955 "2021-08-03T18:33:50Z")

</div>

Welcome to course 2 of DeepLearning.AI TensorFlow Developer Professional Certificate Specialization. In this course, you will improve your network’s performance using convolutions as you train it to identify real-world…

---

## [Submission error – invalid syntax line 104 (Week 4 assignment)](https://dlai.staged-by-discourse.com/t/submission-error-invalid-syntax-line-104-week-4-assignment/891788)

<div class="topic-metadata">

**Author:** [@UTPOL\_TALUKDAR](https://dlai.staged-by-discourse.com/u/UTPOL_TALUKDAR)\
**Replies:** 1\
**Last updated:** [April 25, 2026, 9:28pm UTC](https://dlai.staged-by-discourse.com/t/submission-error-invalid-syntax-line-104-week-4-assignment/891788 "2026-04-25T21:28:29Z")

</div>

Hi, I completed the Week 4 assignment (Handling Complex Images), and all unit tests passed successfully. However, when I submit, I get this error: invalid syntax (, line 104) I have already: Restarted kernel Run al…

---

## [Art\_Generation\_with\_Neural\_Style\_Transfer train\_step issues](https://dlai.staged-by-discourse.com/t/art-generation-with-neural-style-transfer-train-step-issues/890288)

<div class="topic-metadata">

**Author:** [@matthewpatin](https://dlai.staged-by-discourse.com/u/matthewpatin)\
**Replies:** 3\
**Last updated:** [March 13, 2026, 10:03pm UTC](https://dlai.staged-by-discourse.com/t/art-generation-with-neural-style-transfer-train-step-issues/890288 "2026-03-13T22:03:58Z")

</div>

Hi, I’m working on the train\_step of week 4 assignment 2. I’m in the for loop, directionally i’m: getting the vgg\_model\_outputs for the current image computing the style cost using the style layers and current image …

---

## [C2W2 - Assignment not reaching 80% accuracy](https://dlai.staged-by-discourse.com/t/c2w2-assignment-not-reaching-80-accuracy/236801)

<div class="topic-metadata">

**Author:** [@Kamavaram](https://dlai.staged-by-discourse.com/u/Kamavaram)\
**Replies:** 6\
**Last updated:** [December 25, 2025, 12:02pm UTC](https://dlai.staged-by-discourse.com/t/c2w2-assignment-not-reaching-80-accuracy/236801 "2025-12-25T12:02:30Z")

</div>

Hi, course : DeepLearning.AI TensorFlow Developer Professional Certificate Course 2 - CNN with image augmentation In C2W2 , Cats vs Dogs classification using Data Augmentation , should get 80% as accuracy with 15 epoc…

---

## [Grading Issue in Submitting](https://dlai.staged-by-discourse.com/t/grading-issue-in-submitting/884524)

<div class="topic-metadata">

**Author:** [@MHusnain](https://dlai.staged-by-discourse.com/u/MHusnain)\
**Replies:** 25\
**Last updated:** [December 8, 2025, 3:31pm UTC](https://dlai.staged-by-discourse.com/t/grading-issue-in-submitting/884524 "2025-12-08T15:31:06Z")

</div>

image was removed as posting codes that grades your assignment is considered direct violation of Code of conduct, kindly refrain from posting any grade function codes. if a mentor wants to look at your codes they wil…

---

## [C2W3 - create\_pre\_trained\_model - Grader Error: Grader feedback not found](https://dlai.staged-by-discourse.com/t/c2w3-create-pre-trained-model-grader-error-grader-feedback-not-found/884522)

<div class="topic-metadata">

**Author:** [@swat6296](https://dlai.staged-by-discourse.com/u/swat6296)\
**Replies:** 5\
**Last updated:** [December 7, 2025, 12:55pm UTC](https://dlai.staged-by-discourse.com/t/c2w3-create-pre-trained-model-grader-error-grader-feedback-not-found/884522 "2025-12-07T12:55:01Z")

</div>

I am getting the following error for “create\_pre\_trained\_model“ segment of the C2W3 programming assignment: Grader Error: Grader feedback not found Visit the Discussion forum to see if your peers are experiencing or h…

---

## [Submitted Assignments Gone](https://dlai.staged-by-discourse.com/t/submitted-assignments-gone/884531)

<div class="topic-metadata">

**Author:** [@paden](https://dlai.staged-by-discourse.com/u/paden)\
**Replies:** 7\
**Last updated:** [December 6, 2025, 10:29pm UTC](https://dlai.staged-by-discourse.com/t/submitted-assignments-gone/884531 "2025-12-06T22:29:23Z")

</div>

I did a number of assignments in C1 and C2 (for example, C2W1) 2 days ago and successfully submitted them. I hit the “save” button inside the DeepLearning.AI Jupyter instance and it updated the modified time for the .ipy…

---

## [C2W3 Assignment: I can't get over 99.9% accuracy](https://dlai.staged-by-discourse.com/t/c2w3-assignment-i-cant-get-over-99-9-accuracy/685140)

<div class="topic-metadata">

**Author:** [@vlfdmstmf](https://dlai.staged-by-discourse.com/u/vlfdmstmf)\
**Replies:** 20\
**Last updated:** [October 28, 2025, 4:46pm UTC](https://dlai.staged-by-discourse.com/t/c2w3-assignment-i-cant-get-over-99-9-accuracy/685140 "2025-10-28T16:46:44Z")

</div>

For this assignment, we should get over 99.9% accuracy for training data within 5 epochs. But, my model didn’t work. My model is showing 51.3% since 4 epochs. Whenever I test my code for each graded function, I got “All …

---

## [C4W1A2 AttributeError: 'tuple' object has no attribute 'compile'](https://dlai.staged-by-discourse.com/t/c4w1a2-attributeerror-tuple-object-has-no-attribute-compile/881235)

<div class="topic-metadata">

**Author:** [@mehmete](https://dlai.staged-by-discourse.com/u/mehmete)\
**Replies:** 3\
**Last updated:** [October 12, 2025, 3:07pm UTC](https://dlai.staged-by-discourse.com/t/c4w1a2-attributeerror-tuple-object-has-no-attribute-compile/881235 "2025-10-12T15:07:41Z")

</div>

C4W1A2 AttributeError: ‘tuple’ object has no attribute ‘compile’ ı took this error. I also checked forum and answer of this error that do not do “ model = (inputs, outputs)“ is not existing in my code. I am just adding l…

---

## [C2W2 Assignment Unexpected error in train\_val\_datasets](https://dlai.staged-by-discourse.com/t/c2w2-assignment-unexpected-error-in-train-val-datasets/880694)

<div class="topic-metadata">

**Author:** [@carlosmorillo](https://dlai.staged-by-discourse.com/u/carlosmorillo)\
**Replies:** 2\
**Last updated:** [October 5, 2025, 2:39am UTC](https://dlai.staged-by-discourse.com/t/c2w2-assignment-unexpected-error-in-train-val-datasets/880694 "2025-10-05T02:39:22Z")

</div>

Getting the following error when my assignment is submitted. Any ideas?

---

## [TensorFlow Developer course. C1W2](https://dlai.staged-by-discourse.com/t/tensorflow-developer-course-c1w2/880355)

<div class="topic-metadata">

**Author:** [@JannAI](https://dlai.staged-by-discourse.com/u/JannAI)\
**Replies:** 2\
**Last updated:** [September 29, 2025, 2:46am UTC](https://dlai.staged-by-discourse.com/t/tensorflow-developer-course-c1w2/880355 "2025-09-29T02:46:51Z")

</div>

Already tries several times to submit the right solution but still: Grades Try Again • Grade Received: 0% • To Pass: 80% or higher

---

## [C2W1 Graded Assignment: Unable to find object required for grading in your code](https://dlai.staged-by-discourse.com/t/c2w1-graded-assignment-unable-to-find-object-required-for-grading-in-your-code/879424)

<div class="topic-metadata">

**Author:** [@akhil236](https://dlai.staged-by-discourse.com/u/akhil236)\
**Replies:** 2\
**Last updated:** [September 17, 2025, 8:48pm UTC](https://dlai.staged-by-discourse.com/t/c2w1-graded-assignment-unable-to-find-object-required-for-grading-in-your-code/879424 "2025-09-17T20:48:23Z")

</div>

Hi, I am working through the programming assignment for week 1 in course 2 and I pass all the unittests when running through the notebook, however when I submit it into the grader i get the error “unable to find object r…

---

## [RMSprop error in 1st week's assignment](https://dlai.staged-by-discourse.com/t/rmsprop-error-in-1st-weeks-assignment/879371)

<div class="topic-metadata">

**Author:** [@chartechaccountant](https://dlai.staged-by-discourse.com/u/chartechaccountant)\
**Replies:** 1\
**Last updated:** [September 15, 2025, 1:16pm UTC](https://dlai.staged-by-discourse.com/t/rmsprop-error-in-1st-weeks-assignment/879371 "2025-09-15T13:16:15Z")

</div>

1st week: Cats vs dog classifier Just a small thing I noticed,if we keep learningRate as 0.0001, the kernel crashes. To students searching for kernel crashing error, keep LR = 0.001. Hope it helps

---

## [C2W2\_Augmentation\_Assignment\_Repeated\_Kernel\_Crash](https://dlai.staged-by-discourse.com/t/c2w2-augmentation-assignment-repeated-kernel-crash/878225)

<div class="topic-metadata">

**Author:** [@Akson](https://dlai.staged-by-discourse.com/u/Akson)\
**Replies:** 6\
**Last updated:** [September 12, 2025, 1:33pm UTC](https://dlai.staged-by-discourse.com/t/c2w2-augmentation-assignment-repeated-kernel-crash/878225 "2025-09-12T13:33:43Z")

</div>

When creating a post, please add: Week # must be added in the tags option of the post. Link to the classroom item you are referring to: Description (include relevant info but please do not post solution code or your en…

---

## [C2W4 Assignment: failed in create model](https://dlai.staged-by-discourse.com/t/c2w4-assignment-failed-in-create-model/867788)

<div class="topic-metadata">

**Author:** [@Aysha654](https://dlai.staged-by-discourse.com/u/Aysha654)\
**Replies:** 4\
**Last updated:** [August 6, 2025, 2:18pm UTC](https://dlai.staged-by-discourse.com/t/c2w4-assignment-failed-in-create-model/867788 "2025-08-06T14:18:57Z")

</div>

Greetings, i have submitted my code, and this is the grader output Failed test case: There was an error trying to fit the model. Expected: No exceptions, but got: strArguments target and output must have the same s…

---

## [C2W2\_Assignment - Exercise 3 create\_model](https://dlai.staged-by-discourse.com/t/c2w2-assignment-exercise-3-create-model/852491)

<div class="topic-metadata">

**Author:** [@Uziel\_Romero44](https://dlai.staged-by-discourse.com/u/Uziel_Romero44)\
**Replies:** 1\
**Last updated:** [July 15, 2025, 9:43pm UTC](https://dlai.staged-by-discourse.com/t/c2w2-assignment-exercise-3-create-model/852491 "2025-07-15T21:43:20Z")

</div>

course : DeepLearning.AI TensorFlow Developer Professional Certificate In C2W2 , Cats vs Dogs classification using Data Augmentation Week 2, Exercise 3: create\_model Hello, my name is Uziel Romero I have the model wi…

---

## [C2W1 graded assignement](https://dlai.staged-by-discourse.com/t/c2w1-graded-assignement/842180)

<div class="topic-metadata">

**Author:** [@Ashutosh\_Mittal1](https://dlai.staged-by-discourse.com/u/Ashutosh_Mittal1)\
**Replies:** 2\
**Last updated:** [June 29, 2025, 6:01pm UTC](https://dlai.staged-by-discourse.com/t/c2w1-graded-assignement/842180 "2025-06-29T18:01:38Z")

</div>

whenever I try to run the graded lab assignment even before completing one epoch it says that kernel has died and will restart automatically and I am unable to finish the assignement and it is due in 30 mins can anyone p…

---

## [C2\_W3\_Lab1\_Transfer\_Learning](https://dlai.staged-by-discourse.com/t/c2-w3-lab1-transfer-learning/836472)

<div class="topic-metadata">

**Author:** [@DorineAwilly](https://dlai.staged-by-discourse.com/u/DorineAwilly)\
**Replies:** 12\
**Last updated:** [June 23, 2025, 2:54pm UTC](https://dlai.staged-by-discourse.com/t/c2-w3-lab1-transfer-learning/836472 "2025-06-23T14:54:35Z")

</div>

Week 3 C2-Convolutional Neural Networks. Link: /lab/tree/C2\_W3\_Lab\_1\_transfer\_learning.ipynb: Applying Transfer Learning to Cats v Dogs (Lab 1) is unable to Launch despite several attempts to refresh my browser. What c…

---

## [C2W1 Assignment: model not compatible with data](https://dlai.staged-by-discourse.com/t/c2w1-assignment-model-not-compatible-with-data/831357)

<div class="topic-metadata">

**Author:** [@WarntjenA](https://dlai.staged-by-discourse.com/u/WarntjenA)\
**Replies:** 7\
**Last updated:** [June 11, 2025, 1:03pm UTC](https://dlai.staged-by-discourse.com/t/c2w1-assignment-model-not-compatible-with-data/831357 "2025-06-11T13:03:04Z")

</div>

In the Cats vs. Dogs Assignment in Week 1 of the course Convoluational Neural Networks in Tensorflow, I get an error although all the preceding unit tests are run without any problem. When fitting the model, I get the e…

---

## [Week 1: Using CNN's with the Cats vs Dogs Dataset](https://dlai.staged-by-discourse.com/t/week-1-using-cnns-with-the-cats-vs-dogs-dataset/717349)

<div class="topic-metadata">

**Author:** [@shinta\_arum21](https://dlai.staged-by-discourse.com/u/shinta_arum21)\
**Replies:** 2\
**Last updated:** [May 14, 2025, 11:09pm UTC](https://dlai.staged-by-discourse.com/t/week-1-using-cnns-with-the-cats-vs-dogs-dataset/717349 "2025-05-14T23:09:40Z")

</div>

why unittests is not defined , even though I have completed all the tests and everything all test passed

---

## [C2W3 - Programming Assignment: Transfer Learning - Horses or Humans](https://dlai.staged-by-discourse.com/t/c2w3-programming-assignment-transfer-learning-horses-or-humans/711537)

<div class="topic-metadata">

**Author:** [@ivanintelligence](https://dlai.staged-by-discourse.com/u/ivanintelligence)\
**Replies:** 4\
**Last updated:** [April 10, 2025, 1:15pm UTC](https://dlai.staged-by-discourse.com/t/c2w3-programming-assignment-transfer-learning-horses-or-humans/711537 "2025-04-10T13:15:35Z")

</div>

When grading, my create\_pre\_trained\_model only earns 19/25 points due to this explanation: I believe I did that part correctly in code. Running their cells yield no problem. Running “unittests.test\_create\_pre\_trained…

---

## [C2W4\_ASSIGNMENT Accuracy](https://dlai.staged-by-discourse.com/t/c2w4-assignment-accuracy/781437)

<div class="topic-metadata">

**Author:** [@penguin12](https://dlai.staged-by-discourse.com/u/penguin12)\
**Replies:** 1\
**Last updated:** [March 7, 2025, 8:12am UTC](https://dlai.staged-by-discourse.com/t/c2w4-assignment-accuracy/781437 "2025-03-07T08:12:40Z")

</div>

Hi, are we supposed to achieve 99% training acc and 95% val acc with limited parameters which is 30000? It worked obviously using higher values of filters for conv and I’m not sure if we’re allowed to do that. I tried us…

---

## [Download dogs vs cats dataset](https://dlai.staged-by-discourse.com/t/download-dogs-vs-cats-dataset/778518)

<div class="topic-metadata">

**Author:** [@asoftrai](https://dlai.staged-by-discourse.com/u/asoftrai)\
**Replies:** 4\
**Last updated:** [March 2, 2025, 5:14pm UTC](https://dlai.staged-by-discourse.com/t/download-dogs-vs-cats-dataset/778518 "2025-03-02T17:14:19Z")

</div>

I want to download the datasets for the course 2 w1 labs. Please help me download the datasets. Thank you.

---

## [Jupyter server slow?](https://dlai.staged-by-discourse.com/t/jupyter-server-slow/775863)

<div class="topic-metadata">

**Author:** [@frd1963](https://dlai.staged-by-discourse.com/u/frd1963)\
**Replies:** 2\
**Last updated:** [February 24, 2025, 6:21pm UTC](https://dlai.staged-by-discourse.com/t/jupyter-server-slow/775863 "2025-02-24T18:21:01Z")

</div>

Has anyone else been experiencing extremely slow performance on the server for the past 5 days or so? Even the import block takes up to 15 seconds. I have been working on the C2W2 assignment since Thursday, and it was …

---

## [C2W3 assignment - Transfer learning performance](https://dlai.staged-by-discourse.com/t/c2w3-assignment-transfer-learning-performance/734792)

<div class="topic-metadata">

**Author:** [@eciuffo](https://dlai.staged-by-discourse.com/u/eciuffo)\
**Replies:** 6\
**Last updated:** [February 19, 2025, 8:10pm UTC](https://dlai.staged-by-discourse.com/t/c2w3-assignment-transfer-learning-performance/734792 "2025-02-19T20:10:12Z")

</div>

The performance of my model was awful. I noticed that after the preprocess function, We do not have an “Optimize the dataset for training” cell like we had in Lab 1 of week 3. with that, we do not cache(), shuffle() and…

---

## [C2W2 unitests passed but grader failed](https://dlai.staged-by-discourse.com/t/c2w2-unitests-passed-but-grader-failed/769727)

<div class="topic-metadata">

**Author:** [@JZ\_deploys\_ai](https://dlai.staged-by-discourse.com/u/JZ_deploys_ai)\
**Replies:** 2\
**Last updated:** [February 14, 2025, 7:16am UTC](https://dlai.staged-by-discourse.com/t/c2w2-unitests-passed-but-grader-failed/769727 "2025-02-14T07:16:48Z")

</div>

Hi Everyone, could you please help me understand what I can do to pass the assignment? The unit tests are passing, but after submission, the grader produces the error: “data\_augmentor is not defined” I checked other p…

---

## [C2W3\_ERROR unittests.test\_create\_final\_model(create\_final\_model, pre\_trained\_model, last\_output)](https://dlai.staged-by-discourse.com/t/c2w3-error-unittests-test-create-final-model-create-final-model-pre-trained-model-last-output/757158)

<div class="topic-metadata">

**Author:** [@cortiz](https://dlai.staged-by-discourse.com/u/cortiz)\
**Replies:** 7\
**Last updated:** [January 24, 2025, 2:58am UTC](https://dlai.staged-by-discourse.com/t/c2w3-error-unittests-test-create-final-model-create-final-model-pre-trained-model-last-output/757158 "2025-01-24T02:58:42Z")

</div>

I’m getting this error when I try to run the tests unittests.test\_create\_final\_model(create\_final\_model, pre\_trained\_model, last\_output). And I don’t know what the problem is because with this I get print(type(last\_o…

---

## [Create\_model: Unable to find object required for grading in your code](https://dlai.staged-by-discourse.com/t/create-model-unable-to-find-object-required-for-grading-in-your-code/751605)

<div class="topic-metadata">

**Author:** [@Olmosergiio](https://dlai.staged-by-discourse.com/u/Olmosergiio)\
**Replies:** 5\
**Last updated:** [January 14, 2025, 2:50pm UTC](https://dlai.staged-by-discourse.com/t/create-model-unable-to-find-object-required-for-grading-in-your-code/751605 "2025-01-14T14:50:58Z")

</div>

Hi, I have a problem with Week 2: Tackle Overfitting with Data Augmentation. I pass the accuracy and error requirements but when I submit the assignment I receive a 75% grade because in the create\_model function I have 0…

---

## [C2W2 Assignment - Model is not passing unittest](https://dlai.staged-by-discourse.com/t/c2w2-assignment-model-is-not-passing-unittest/751236)

<div class="topic-metadata">

**Author:** [@zyadab](https://dlai.staged-by-discourse.com/u/zyadab)\
**Replies:** 1\
**Last updated:** [January 14, 2025, 6:49am UTC](https://dlai.staged-by-discourse.com/t/c2w2-assignment-model-is-not-passing-unittest/751236 "2025-01-14T06:49:25Z")

</div>

Hello, I started the assignment and finsihed all the graded functions and the model is working fine, although not as accurate as I would have liked :slight\_smile: On Exercise 3 it seems that my returned model does not …

---

## [C2W1 Assignment --- not able to achieve more than 50 % accuracy](https://dlai.staged-by-discourse.com/t/c2w1-assignment-not-able-to-achieve-more-than-50-accuracy/741559)

<div class="topic-metadata">

**Author:** [@mnalluru](https://dlai.staged-by-discourse.com/u/mnalluru)\
**Replies:** 1\
**Last updated:** [December 27, 2024, 4:01pm UTC](https://dlai.staged-by-discourse.com/t/c2w1-assignment-not-able-to-achieve-more-than-50-accuracy/741559 "2024-12-27T16:01:51Z")

</div>

Hoping you folks help me. I am not able achieve desired accuracy 95% i am stuck at 50 % , using 3conv layers and even tow dense hidden layers.I am not sure what i am doing not right here .kindly help me out. TIA

[Next page](https://dlai.staged-by-discourse.com/c/course-q-a/tensorflow-developer-professional/tf1-course-2/80.md?page=1)
