Skip to content

Commit

Permalink
take care of all caps image extensions, for lucidrains/magvit2-pytorc…
Browse files Browse the repository at this point in the history
  • Loading branch information
trustme000777 committed Dec 7, 2023
1 parent d00ed09 commit 718723a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions magvit2_pytorch/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def __init__(
self.folder = folder

self.image_size = image_size

exts = exts + [ext.upper() for ext in exts]
self.paths = [p for ext in exts for p in folder.glob(f'**/*.{ext}')]

print(f'{len(self.paths)} training samples found at {folder}')
Expand Down
2 changes: 1 addition & 1 deletion magvit2_pytorch/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.44'
__version__ = '0.1.45'

0 comments on commit 718723a

Please sign in to comment.