Face detection in real time with MTCNN ? 'NoneType' object has no attribute 'size'

face detection in real time with MTCNN ? ‘NoneType’ object has no attribute ‘size’