Keras version - 2.4.3 TF version - 2.3.0
The code is as follows:
import tensorflow as tf import cv2 import numpy as np tf.compat.v1.enable_eager_execution