I have a much complicated system but I reproduced the error with the following simplified code.
import numpy as np import cv2 from tensorflow.keras.models import