Skip to content

Commit

Permalink
Add webp to list of supported files in reader.
Browse files Browse the repository at this point in the history
  • Loading branch information
rom1504 committed Aug 3, 2023
1 parent 5408b22 commit 148d9b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clip_retrieval/clip_inference/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def folder_to_keys(folder, enable_text=True, enable_image=True, enable_metadata=
*path.glob("**/*.jpg"),
*path.glob("**/*.jpeg"),
*path.glob("**/*.bmp"),
*path.glob("**/*.webp"),
]
image_files = {image_file.stem: image_file for image_file in image_files}
if enable_metadata:
Expand Down

0 comments on commit 148d9b0

Please sign in to comment.