Skip to content
Snippets Groups Projects
Commit 14770d98 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

fix sort

parent a9ff4820
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ def main(args, model, renderer, device):
# img_paths = sorted(img_paths,key = lambda x: int(os.path.basename(x).removesuffix('.png').removeprefix('Frame')))
#For Phoenix
img_paths = sorted(img_paths,key = lambda x: int(os.path.basename(x).removeprefix('images')))
img_paths = sorted(img_paths,key = lambda x: int(os.path.basename(x).removeprefix('images').removesuffix('.png')))
img_cv2 = cv2.imread(str(img_paths[0]))
if args.bbox == 'True':
......
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