Skip to content

Commit

Permalink
fix loading error in folder format
Browse files Browse the repository at this point in the history
  • Loading branch information
guanjunwu authored Jan 22, 2024
1 parent c95c9e7 commit f76ccdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@
filenames.sort()

for filename in tqdm(filenames):
raw_image = cv2.imread(filename)
full_name = os.path.join(args.img_path, filename)
raw_image = cv2.imread(full_name)
image = cv2.cvtColor(raw_image, cv2.COLOR_BGR2RGB) / 255.0

h, w = image.shape[:2]
Expand Down

0 comments on commit f76ccdd

Please sign in to comment.