Hello sir, I ma very grateful for your time and reply. A sample of the output is as follows:
tensor([[[[-1.9360e-03,  1.6174e-03,  7.0995e-03,  ...,  6.7276e-04,
           -1.2154e-03, -1.4051e-03],
          [-4.9215e-03,  5.7097e-03, -6.7503e-03,  ...,  1.4770e-03,
           -4.8499e-04,  1.8494e-03],
          [-4.8179e-03, -4.1774e-03,  2.4349e-03,  ...,  9.2152e-04,
            1.0596e-03,  7.4716e-04],
          ...,
          [ 1.9952e-03, -6.0699e-04, -2.3684e-03,  ..., -1.3495e-04,
            9.3090e-06, -3.7983e-05],
          [-2.1160e-03, -5.0737e-04,  1.9036e-03,  ..., -1.2619e-04,
            1.1687e-04,  7.8221e-05],
          [ 7.3612e-04,  4.1756e-05, -2.4000e-03,  ..., -5.8748e-05,
           -8.1708e-05,  2.6121e-05]],

         [[ 7.7094e-03,  1.0867e-03,  5.3360e-03,  ...,  1.6651e-03,
           -1.8157e-03, -6.9385e-04],
          [ 6.7968e-03, -2.2930e-04, -4.8593e-03,  ..., -2.5276e-04,
            1.2758e-04, -1.0331e-03],
          [ 4.3360e-03, -2.8905e-03, -1.5076e-03,  ...,  1.3465e-03,
           -8.5237e-04, -2.1074e-03],
          ...,
          [ 6.3477e-04,  8.0362e-04, -1.6985e-03,  ...,  9.2338e-05,
           -1.9669e-05,  2.2638e-05],
          [ 8.7553e-05,  1.1976e-03,  2.3584e-03,  ...,  3.8165e-05,
           -5.9556e-05, -6.1906e-06],
          [-8.0818e-04,  2.3715e-04,  3.0344e-04,  ...,  9.8189e-05,
           -7.9020e-05,  6.2674e-05]]]], grad_fn=<SlowConvTranspose2DBackward>)

As for now the values of the recall and precision are no longer negative or greater than 1. However, I have been facing a new problem. During the training, the values of the recall and precision at most of the epochs is null (nan). Only few of the epochs could yield numerical values and very low values. Is this normal or there is still something wrong in the coding logic. I am yet to optimize the whole network. I would like to make sure that the model evaluation is right before moving on.
Moreover, In some cases, the following error occurs
 precision.append(overlap[-1]/X_area[-1])
ZeroDivisionError: division by zero

Sincerely appreciate your help and suggestions