|
|
|
@ -22,8 +22,6 @@ from modules.shared import opts, cmd_opts
|
|
|
|
|
|
|
|
|
|
|
|
LANCZOS = (Image.Resampling.LANCZOS if hasattr(Image, 'Resampling') else Image.LANCZOS)
|
|
|
|
LANCZOS = (Image.Resampling.LANCZOS if hasattr(Image, 'Resampling') else Image.LANCZOS)
|
|
|
|
|
|
|
|
|
|
|
|
Image.init() # initialize once all known file format handlers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def image_grid(imgs, batch_size=1, rows=None):
|
|
|
|
def image_grid(imgs, batch_size=1, rows=None):
|
|
|
|
if rows is None:
|
|
|
|
if rows is None:
|
|
|
|
|