Skip to content

Commit

Permalink
Fix single file caption error.
Browse files Browse the repository at this point in the history
  • Loading branch information
fireicewolf committed Aug 29, 2024
1 parent e026f3f commit d9a12c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/joy.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def inference(self):
[image for image in glob.glob(path_to_find, recursive=self.args.recursive)
if image.lower().endswith(SUPPORT_IMAGE_FORMATS)]),
key=lambda filename: (os.path.splitext(filename)[0])
) if not os.path.isfile(self.args.data_path) else str(self.args.data_path) \
) if not os.path.isfile(self.args.data_path) else [str(self.args.data_path)] \
if str(self.args.data_path).lower().endswith(SUPPORT_IMAGE_FORMATS) else None

if image_paths is None:
Expand Down

0 comments on commit d9a12c9

Please sign in to comment.