C3W2 Zombie Detector Loss Output Not as Expected

hi @Alavudeen_Ahamed

issues with your codes

  1. from Exercise 2: Visualize the training images

for code line
define the path (string) for each image, you have used incorrect directory (you used global variable) where as you were suppose to use the assign the name (string) of the directory containing the training images, i.e. train_image_dir

  1. Now from Exercise 10: Define the training step
    In the preprocess the image step
    You were suppose to create an empty list of preproccessed_image_list and true_shape list

Then preprocess the img in the image_list loop where you create processed_img, true_shape using model.preprocess function to img, then under this loop first you append the processed_img to the preprocessed_image_list using .append, and lastly append the true_shape to the true_shape list

Now you create the tensor form of preproccessed_image_list and true_shape list in separate steps using tf.concat. please make sure to mention correct axis

Your make a prediction code is correct

Now while calculating total loss, you need to do corrections as you missed this step
Calculate the loss (and make sure the loss function has the ground truth to compare with the prediction)
So use the model.provide_groundtruth to create a list of groundtruth_boxes_list, groundtruth_classes_list.

Now comes your losses_dict and total loss codes, also in total loss please mention Loss and not loss

You also have not written codes for
Optimize the model’s selected variables-For this you can refer the section before exercise 10

Remember everything I mentioned was explained before the exercise 10, in calculate loss and provide groundtruth section.