I am using YOLO for object detection and wanted to edit the code files to run detection on all the images in a folder and I found this function Gitgub link to the function