mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-18 01:30:02 +00:00
Add pin_memory to DataLoader and update ImageInfo to support
This commit is contained in:
@@ -397,6 +397,7 @@ def train(args):
|
||||
shuffle=True,
|
||||
collate_fn=collator,
|
||||
num_workers=n_workers,
|
||||
pin_memory=args.pin_memory,
|
||||
persistent_workers=args.persistent_data_loader_workers,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user