mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-14 16:22:28 +00:00
Update accel_sdxl_gen_img.py
This commit is contained in:
@@ -1513,8 +1513,8 @@ def main(args):
|
||||
logger.info(f"preferred device: {device}, {distributed_state.is_main_process}")
|
||||
clean_memory_on_device(device)
|
||||
model_dtype = sdxl_train_util.match_mixed_precision(args, dtype)
|
||||
for pi in range(distributed_state.state.num_processes):
|
||||
if pi == distributed_state.state.local_process_index:
|
||||
for pi in range(distributed_state.num_processes):
|
||||
if pi == distributed_state.local_process_index:
|
||||
logger.info(f"loading model for process {distributed_state.local_process_index+1}/{distributed_state.num_processes}")
|
||||
(_, text_encoder1, text_encoder2, vae, unet, _, _) = sdxl_train_util._load_target_model(
|
||||
args.ckpt, args.vae, sdxl_model_util.MODEL_VERSION_SDXL_BASE_V1_0, dtype, device if args.lowram else "cpu", model_dtype
|
||||
|
||||
Reference in New Issue
Block a user