|
发表于 2023-4-9 23:01:31
|
显示全部楼层
[Dataset 0]
loading image sizes.
100%|████████████████████████████████████████████████████████████████████████████████| 17/17 [00:00<00:00, 2829.72it/s]
make buckets
number of images (including repeats) / 各bucketの画像枚数(繰り返し回数を含む)
bucket 0: resolution (512, 512), count: 119
mean ar error (without repeats): 0.049180327868852514
prepare accelerator
Traceback (most recent call last):
File "D:\BaiduNetdiskDownload\lora\lora-scripts\lora-scripts\sd-scripts\train_network.py", line 752, in <module>
train(args)
File "D:\BaiduNetdiskDownload\lora\lora-scripts\lora-scripts\sd-scripts\train_network.py", line 140, in train
accelerator, unwrap_model = train_util.prepare_accelerator(args)
File "D:\BaiduNetdiskDownload\lora\lora-scripts\lora-scripts\sd-scripts\library\train_util.py", line 2692, in prepare_accelerator
accelerator = Accelerator(
File "D:\BaiduNetdiskDownload\lora\lora-scripts\lora-scripts\venv\lib\site-packages\accelerate\accelerator.py", line 355, in __init__
raise ValueError(err.format(mode="fp16", requirement="a GPU"))
ValueError: fp16 mixed precision requires a GPU
Traceback (most recent call last):
File "C:\Users\89577\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\89577\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\BaiduNetdiskDownload\lora\lora-scripts\lora-scripts\venv\Scripts\accelerate.exe\__main__.py", line 7, in <module>
File "D:\BaiduNetdiskDownload\lora\lora-scripts\lora-scripts\venv\lib\site-packages\accelerate\commands\accelerate_cli.py", line 45, in main
args.func(args)
File "D:\BaiduNetdiskDownload\lora\lora-scripts\lora-scripts\venv\lib\site-packages\accelerate\commands\launch.py", line 1104, in launch_command
simple_launcher(args)
File "D:\BaiduNetdiskDownload\lora\lora-scripts\lora-scripts\venv\lib\site-packages\accelerate\commands\launch.py", line 567, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['D:\\BaiduNetdiskDownload\\lora\\lora-scripts\\lora-scripts\\venv\\Scripts\\python.exe', './sd-scripts/train_network.py', '--enable_bucket', '--pretrained_model_name_or_path=./sd-models/model.ckpt', '--train_data_dir=./train/sucai', '--output_dir=./output', '--logging_dir=./logs', '--log_prefix=aki', '--resolution=512,512', '--network_module=networks.lora', '--max_train_epochs=10', '--learning_rate=1e-4', '--unet_lr=1e-4', '--text_encoder_lr=1e-5', '--lr_scheduler=cosine_with_restarts', '--lr_warmup_steps=0', '--lr_scheduler_num_cycles=1', '--network_dim=32', '--network_alpha=32', '--output_name=aki', '--train_batch_size=1', '--save_every_n_epochs=2', '--mixed_precision=fp16', '--save_precision=fp16', '--seed=1337', '--cache_latents', '--clip_skip=2', '--prior_loss_weight=1', '--max_token_length=225', '--caption_extension=.txt', '--save_model_as=safetensors', '--min_bucket_reso=256', '--max_bucket_reso=1024', '--keep_tokens=0', '--xformers', '--shuffle_caption']' returned non-zero exit status 1.
Train finished
版主帮忙看看这是什么问题,感谢! |
|