Face landmark project

I got the output but when I give path to one image it rus perfectly but when I run for the whole image folder it shows error. Its urgent can someone tell me what could be the issue