D:\Lora_learning3\sd-scripts\venv\Lib\site-packages\transformers\models\clip\modeling_clip.py:480: UserWarning: 1Torch was not compiled with flash attention. (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\transformers\cuda\sdp_utils.cpp:555.)
attn_output = torch.nn.functional.scaled_dot_product_attention(
Traceback (most recent call last):
File "D:\Lora_learning3\sd-scripts\sd3_train_network.py", line 480, in <module>
trainer.train(args)
File "D:\Lora_learning3\sd-scripts\train_network.py", line 1209, in train
loss = train_util.conditional_loss(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Lora_learning3\sd-scripts\library\train_util.py", line 5899, in conditional_loss
huber_c = huber_c.view(-1, 1, 1, 1)
^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'view'
steps: 0%| | 0/3000 [00:52<?, ?it/s]
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "D:\Lora_learning3\sd-scripts\venv\Scripts\accelerate.exe\__main__.py", line 7, in <module>
File "D:\Lora_learning3\sd-scripts\venv\Lib\site-packages\accelerate\commands\accelerate_cli.py", line 48, in main
args.func(args)
File "D:\Lora_learning3\sd-scripts\venv\Lib\site-packages\accelerate\commands\launch.py", line 1106, in launch_command
simple_launcher(args)
File "D:\Lora_learning3\sd-scripts\venv\Lib\site-packages\accelerate\commands\launch.py", line 704, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['D:\\Lora_learning3\\sd-scripts\\venv\\Scripts\\python.exe', 'sd3_train_network.py', '--network_module', 'networks.lora_sd3', '--config_file', 'D:\\Lora_learning\\Data\\SD3_command03.toml']' returned non-zero exit status 1.
お忙しい中、続けてバグ案件を出して申し訳ありません。 今現在SD3.5で複数概念をうまく学習できるように色々と模索しているところではありますが、バグに遭遇したので報告させていただきます。
SD3.5で--loss_typeにsmooth_l1を指定したら、エラーが出て学習が止まりました。 以下はエラー箇所のログです。
学習時のToml
また、同様のエラーはFluxでも起きているそうです。 https://github.com/Akegarasu/lora-scripts/issues/565