Skip to content
Snippets Groups Projects
Commit e3e55b74 authored by Low, Low Jian He (PG/R - Comp Sci & Elec Eng)'s avatar Low, Low Jian He (PG/R - Comp Sci & Elec Eng)
Browse files

add try exception

parent 90be0704
No related branches found
No related tags found
No related merge requests found
......@@ -322,7 +322,11 @@ if __name__ == '__main__':
if Folder_List[0].endswith('.mp4'):
for vid_file in Folder_List:
args.vid = vid_file
main(args, model, renderer, device, cpm)
try:
main(args, model, renderer, device, cpm)
except Exception as e:
print(f"Error in processing {vid_file}: {e}")
elif Folder_List[0].endswith('.png') or Folder_List[0].endswith('.jpg'):
args.img_folder = args.in_folder
main(args, model, renderer, device, cpm)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment