sd-scripts 実行時に config.toml ファイルが見つからないエラーが発生する - Stable Diffusion
sd-scripts 実行時に config.toml ファイルが見つからないエラーが発生する現象と対処法を紹介します。
現象
sd-scriptsのプログラムを実行すると、config.toml が見つからないエラーが発生します。
原因
起動プログラムのコマンドの値に ダブルクォーテーション
"
や シングルクォーテーション
'
が含まれているとエラーが発生することがあります。
対処法
コマンドから、
"
'
を削除します。
accelerate launch --num_cpu_threads_per_process 1 train_network.py --pretrained_model_name_or_path="C:\model\hogehoge.safetensors" --dataset_config="C:\data\lora-data\config.toml" --output_dir="C:\data\lora-data\output" --output_name="oname" --save_model_as=safetensors --prior_loss_weight=1.0 --resolution=512,512 --train_batch_size=1 --max_train_epochs=10 --learning_rate=1e-4 --optimizer_type="AdamW8bit" --xformers --mixed_precision=fp16 --cache_latents --gradient_checkpointing --save_every_n_epochs=1 --network_module=networks.lora
accelerate launch --num_cpu_threads_per_process 1 train_network.py --pretrained_model_name_or_path=C:\model\hogehoge.safetensors --dataset_config=C:\data\lora-data\config.toml --output_dir=C:\data\lora-data\output --output_name=oname --save_model_as=safetensors --prior_loss_weight=1.0 --resolution=512,512 --train_batch_size=1 --max_train_epochs=10 --learning_rate=1e-4 --optimizer_type=AdamW8bit --xformers --mixed_precision=fp16 --cache_latents --gradient_checkpointing --save_every_n_epochs=1 --network_module=networks.lora
著者
iPentecのメインデザイナー
Webページ、Webクリエイティブのデザインを担当。PhotoshopやIllustratorの作業もする。