Skip to content

Commit

Permalink
Merge pull request #786 from Isotr0py/jxl
Browse files Browse the repository at this point in the history
Support JPEG XL
  • Loading branch information
kohya-ss authored Sep 2, 2023
2 parents 6400116 + 5d88351 commit 497051c
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 497051c

Please sign in to comment.