Skip to content

Commit

Permalink
support jpeg xl
Browse files Browse the repository at this point in the history
  • Loading branch information
Isotr0py committed Aug 25, 2023
1 parent a46a478 commit 5d88351
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/train_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@
except:
pass

try:
from jxlpy import JXLImagePlugin

IMAGE_EXTENSIONS.extend([".jxl", ".JXL"])
except:
pass

IMAGE_TRANSFORMS = transforms.Compose(
[
transforms.ToTensor(),
Expand Down

0 comments on commit 5d88351

Please sign in to comment.