Skip to content

Commit

Permalink
Move jxl plugin to optional pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Disty0 committed Jan 11, 2025
1 parent 2914393 commit 9ee3921
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,7 @@ def install_optional():
install('basicsr')
install('gfpgan')
install('clean-fid')
install('pillow-jxl-plugin==1.3.1', ignore=True)
install('optimum-quanto=0.2.6', ignore=True)
install('bitsandbytes==0.45.0', ignore=True)
install('pynvml', ignore=True)
Expand Down
5 changes: 4 additions & 1 deletion modules/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@
logging.getLogger("diffusers.loaders.single_file").setLevel(logging.ERROR)
timer.startup.record("diffusers")

import pillow_jxl # pylint: disable=W0611,C0411
try:
import pillow_jxl # pylint: disable=W0611,C0411
except:
pass
from PIL import Image # pylint: disable=W0611,C0411
timer.startup.record("pillow")

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ tokenizers==0.21.0
transformers==4.47.1
urllib3==1.26.19
Pillow==10.4.0
pillow-jxl-plugin==1.3.0
timm==0.9.16
pydantic==1.10.15
pyparsing==3.1.4
Expand Down

0 comments on commit 9ee3921

Please sign in to comment.