mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
update extensions
This commit is contained in:
@@ -168,6 +168,7 @@ async def preprocess(params):
|
||||
if len(images) > 0:
|
||||
img = grid(images, labels = None, width = 2048, height = 2048, border = 8, square = True)
|
||||
logdir = os.path.abspath(os.path.join(cmdflags['embeddings_dir'], '../train/log'))
|
||||
Path(logdir).mkdir(parents = True, exist_ok = True)
|
||||
fn = os.path.join(logdir, params.name + '-inputs.jpg')
|
||||
img.save(fn)
|
||||
log.info({ 'preprocess input grid': fn })
|
||||
|
||||
Reference in New Issue
Block a user