You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently im having an issue with Lora training. I have looked everywhere and tried almost every basic solution. I currently have all the dependencies and just re-installed pytorch and kohya to be safe.
Validating that requirements are satisfied.
All requirements satisfied.
Load CSS...
Running on local URL: URL lol
Currently im having an issue with Lora training. I have looked everywhere and tried almost every basic solution. I currently have all the dependencies and just re-installed pytorch and kohya to be safe.
Validating that requirements are satisfied.
All requirements satisfied.
Load CSS...
Running on local URL: URL lol
To create a public link, set
share=True
inlaunch()
.Loading config...
Folder 150_name: 1650 steps
max_train_steps = 1650
stop_text_encoder_training = 0
lr_warmup_steps = 0
accelerate launch --num_cpu_threads_per_process=2 "train_network.py" --enable_bucket --pretrained_model_name_or_path="runwayml/stable-diffusion-v1-5" --train_data_dir="F:/AiThings/AiProject/LoraTraining/name/lorafiles/image" --resolution=768,768 --output_dir="F:/AiThings/AiProject/LoraTraining/name/lorafiles/model" --logging_dir="F:/AiThings/AiProject/LoraTraining/name/lorafiles/log" --network_alpha="128" --save_model_as=safetensors --network_module=networks.lora --text_encoder_lr=5e-5 --unet_lr=0.0001 --network_dim=128 --output_name="name lol r" --lr_scheduler_num_cycles="1" --learning_rate="0.0001" --lr_scheduler="constant" --train_batch_size="1" --max_train_steps="1650" --save_every_n_epochs="1" --mixed_precision="bf16" --save_precision="bf16" --seed="1234" --caption_extension=".txt" --cache_latents --optimizer_type="AdamW8bit" --max_data_loader_n_workers="1" --clip_skip=2 --bucket_reso_steps=64 --xformers --bucket_no_upscale
prepare tokenizer
Use DreamBooth method.
prepare images.
found directory F:\AiThings\AiProject\LoraTraining\name\lorafiles\image\150_name contains 11 image files
1650 train images with repeating.
0 reg images.
no regularization images / 正則化画像が見つかりませんでした
[Dataset 0]
batch_size: 1
resolution: (768, 768)
enable_bucket: True
min_bucket_reso: 256
max_bucket_reso: 1024
bucket_reso_steps: 64
bucket_no_upscale: True
[Subset 0 of Dataset 0]
image_dir: "F:\AiThings\AiProject\LoraTraining\name\lorafiles\image\150_name"
image_count: 11
num_repeats: 150
shuffle_caption: False
keep_tokens: 0
caption_dropout_rate: 0.0
caption_dropout_every_n_epoches: 0
caption_tag_dropout_rate: 0.0
color_aug: False
flip_aug: False
face_crop_aug_range: None
random_crop: False
is_reg: False
class_tokens: name
caption_extension: .txt
[Dataset 0]
loading image sizes.
100%|████████████████████████████████████████████████████████████████████████████████| 11/11 [00:00<00:00, 1469.44it/s]
make buckets
min_bucket_reso and max_bucket_reso are ignored if bucket_no_upscale is set, because bucket reso is defined by image size automatically / bucket_no_upscaleが指定された場合は、bucketの解像度は画像サイズから自動計算されるため、min_bucket_resoとmax_bucket_resoは無視されます
number of images (including repeats) / 各bucketの画像枚数(繰り返し回数を含む)
bucket 0: resolution (768, 768), count: 1650
mean ar error (without repeats): 0.0
prepare accelerator
Traceback (most recent call last):
File "F:\AiThings\AiProject\kohyafresh\kohya_ss\train_network.py", line 659, in
train(args)
File "F:\AiThings\AiProject\kohyafresh\kohya_ss\train_network.py", line 108, in train
accelerator, unwrap_model = train_util.prepare_accelerator(args)
File "F:\AiThings\AiProject\kohyafresh\kohya_ss\library\train_util.py", line 1984, in prepare_accelerator
accelerator = Accelerator(gradient_accumulation_steps=args.gradient_accumulation_steps, mixed_precision=args.mixed_precision,
File "F:\AiThings\AiProject\kohyafresh\kohya_ss\venv\lib\site-packages\accelerate\accelerator.py", line 370, in init
raise ValueError(err.format(mode="bf16", requirement="PyTorch >= 1.10 and a supported device."))
ValueError: bf16 mixed precision requires PyTorch >= 1.10 and a supported device.
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "F:\AiThings\AiProject\kohyafresh\kohya_ss\venv\Scripts\accelerate.exe_main.py", line 7, in
File "F:\AiThings\AiProject\kohyafresh\kohya_ss\venv\lib\site-packages\accelerate\commands\accelerate_cli.py", line 45, in main
args.func(args)
File "F:\AiThings\AiProject\kohyafresh\kohya_ss\venv\lib\site-packages\accelerate\commands\launch.py", line 1104, in launch_command
simple_launcher(args)
File "F:\AiThings\AiProject\kohyafresh\kohya_ss\venv\lib\site-packages\accelerate\commands\launch.py", line 567, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['F:\AiThings\AiProject\kohyafresh\kohya_ss\venv\Scripts\python.exe', 'train_network.py', '--enable_bucket', '--pretrained_model_name_or_path=runwayml/stable-diffusion-v1-5', '--train_data_dir=F:/AiThings/AiProject/LoraTraining/name/lorafiles/image', '--resolution=768,768', '--output_dir=F:/AiThings/AiProject/LoraTraining/name/lorafiles/model', '--logging_dir=F:/AiThings/AiProject/LoraTraining/name/lorafiles/log', '--network_alpha=128', '--save_model_as=safetensors', '--network_module=networks.lora', '--text_encoder_lr=5e-5', '--unet_lr=0.0001', '--network_dim=128', '--output_name=name', '--lr_scheduler_num_cycles=1', '--learning_rate=0.0001', '--lr_scheduler=constant', '--train_batch_size=1', '--max_train_steps=1650', '--save_every_n_epochs=1', '--mixed_precision=bf16', '--save_precision=bf16', '--seed=1234', '--caption_extension=.txt', '--cache_latents', '--optimizer_type=AdamW8bit', '--max_data_loader_n_workers=1', '--clip_skip=2', '--bucket_reso_steps=64', '--xformers', '--bucket_no_upscale']' returned non-zero exit status 1.
The text was updated successfully, but these errors were encountered: