Yes. paths contain the image names. How can i extract the image name against the prediction please? If I try to call path in this way fd.write( ‘,’.join(map(str, paths + ‘\n’))) i get an error message I think i need to transform it somehow. Many Thanks for your help.