[*] Kohya_SS -Master -Zweig
[*] 24 Bilder online heruntergeladen, geschnitten und behalten. li>
< /ul>
Trainingsdaten und Ergebnismodelle < /H2>
- Download Crop-Test-Done.tar.gz von https://easyupload.io/13vbh8
Ich verwende zum ersten und verwenden Sie IMG, als Präfix/Trigger -Wort. .jpg " /> < /p>
und bestätigen Sie, dass die Beschriftung erfolgreich ist: < /p>
Code: Select all
root@ip-xxxx:/data/crop-test/img/50_img woman# strings *txt
img, a woman with long hair and a black dress
img, a woman with long hair and earrings posing for a picture
img, a woman with long hair and earrings posing for a picture
img, a woman with a big smile on her face
img, a close up of a woman with red lipstick
img, a woman with long hair and a black dress
img, a woman with long hair and a black dress
img, a woman with long hair and a red lipstick
img, a woman with long blonde hair and red lipstick
img, a woman with long hair and a necklace
...
[*]Training -> Modelle -> Name oder Pfad des vorab trainierten Modells , Ich habe Stabilität ausgewählt /stable-diffusion-xl-base-1.0
[*]Ordner -> Ausgabeverzeichnis für trainiertes Modell, ich habe /data/crop-test/model
Ordner -> Bildordner (enthält Trainingsbilder Unterordner),Ich habe /data/crop-test/img
[*]Parameter -> Basic ausgewählt, kreuze „No half VAE“ an
< /ol>

Der Trainingsprozess ist erfolgreich:
Code: Select all
(venv) root@ip-172-31-30-185:/home/kohya_ss/package# ./gui.sh --share
Warning: LD_LIBRARY_PATH environment variable is not set.
Certain functionalities may not work correctly.
Please ensure that the required libraries are properly configured.
If you use WSL2 you may want to: export LD_LIBRARY_PATH=/usr/lib/wsl/lib/
12:05:26-185279 INFO Kohya_ss GUI version: v24.1.7
12:05:26-258257 INFO Submodule initialized and updated.
12:05:26-259637 INFO nVidia toolkit detected
12:05:28-843697 INFO Torch 2.1.2+cu118
12:05:28-988088 INFO Torch backend: nVidia CUDA 11.8 cuDNN 8700
12:05:29-018737 INFO Torch detected GPU: Tesla T4 VRAM 14918 Arch (7, 5) Cores 40
12:05:29-025589 INFO Python version is 3.10.12 (main, Jan 17 2025, 14:35:34) [GCC 11.4.0]
12:05:29-027176 INFO Verifying modules installation status from /home/kohya_ss/package/requirements_linux.txt...
12:05:29-031445 INFO Verifying modules installation status from requirements.txt...
2025-01-25 12:05:33.860689: I external/local_tsl/tsl/cuda/cudart_stub.cc:31] Could not find cuda drivers on your machine, GPU will not be used.
2025-01-25 12:05:33.911873: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2025-01-25 12:05:33.911921: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2025-01-25 12:05:33.913381: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2025-01-25 12:05:33.927310: I external/local_tsl/tsl/cuda/cudart_stub.cc:31] Could not find cuda drivers on your machine, GPU will not be used.
2025-01-25 12:05:33.929022: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2025-01-25 12:05:35.732607: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
12:05:40-607170 INFO headless: False
12:05:40-691975 INFO Using shell=True when running external commands...
/home/kohya_ss/package/venv/lib/python3.10/site-packages/gradio/analytics.py:106: UserWarning: IMPORTANT: You are using gradio version 4.43.0, however version 4.44.1 is available, please upgrade.
--------
warnings.warn(
Running on local URL: http://127.0.0.1:7860
Running on public URL: https://xxxx.gradio.live
This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)
12:05:57-434344 INFO SDXL model selected. Setting sdxl parameters
12:06:02-306668 INFO SDXL model selected. Setting sdxl parameters
12:06:15-520353 INFO Start training LoRA Standard ...
12:06:15-521888 INFO Validating lr scheduler arguments...
12:06:15-523131 INFO Validating optimizer arguments...
12:06:15-524087 INFO Validating /data/crop-test/log existence and writability... SUCCESS
12:06:15-525141 INFO Validating /data/crop-test/model existence and writability... SUCCESS
12:06:15-526304 INFO Validating stabilityai/stable-diffusion-xl-base-1.0 existence... SUCCESS
12:06:15-527309 INFO Validating /data/crop-test/img existence... SUCCESS
12:06:15-528331 INFO Folder 50_img woman: 50 repeats found
12:06:15-529470 INFO Folder 50_img woman: 24 images found
12:06:15-530403 INFO Folder 50_img woman: 24 * 50 = 1200 steps
12:06:15-531361 INFO Regulatization factor: 1
12:06:15-532252 INFO Total steps: 1200
12:06:15-533133 INFO Train batch size: 1
12:06:15-534001 INFO Gradient accumulation steps: 1
12:06:15-534896 INFO Epoch: 1
12:06:15-535786 INFO Max train steps: 1600
12:06:15-536643 INFO stop_text_encoder_training = 0
12:06:15-537544 INFO lr_warmup_steps = 160
12:06:15-539077 INFO Saving training config to /data/crop-test/model/last_20250125-120615.json...
12:06:15-540462 INFO Executing command: /home/kohya_ss/package/venv/bin/accelerate launch --dynamo_backend no --dynamo_mode default --mixed_precision fp16 --num_processes 1
--num_machines 1 --num_cpu_threads_per_process 2 /home/kohya_ss/package/sd-scripts/sdxl_train_network.py --config_file
/data/crop-test/model/config_lora-20250125-120615.toml
12:06:15-544535 INFO Command executed.
2025-01-25 12:06:24.777838: I external/local_tsl/tsl/cuda/cudart_stub.cc:31] Could not find cuda drivers on your machine, GPU will not be used.
2025-01-25 12:06:24.823094: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2025-01-25 12:06:24.823142: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2025-01-25 12:06:24.824557: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2025-01-25 12:06:24.831922: I external/local_tsl/tsl/cuda/cudart_stub.cc:31] Could not find cuda drivers on your machine, GPU will not be used.
2025-01-25 12:06:24.832176: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2025-01-25 12:06:25.870362: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2025-01-25 12:06:27 INFO Loading settings from /data/crop-test/model/config_lora-20250125-120615.toml... train_util.py:4174
INFO /data/crop-test/model/config_lora-20250125-120615 train_util.py:4193
2025-01-25 12:06:27 INFO prepare tokenizers sdxl_train_util.py:138
INFO update token length: 75 sdxl_train_util.py:163
INFO Using DreamBooth method. train_network.py:172
2025-01-25 12:06:28 INFO prepare images. train_util.py:1815
INFO found directory /data/crop-test/img/50_img woman contains 24 image files train_util.py:1762
INFO 1200 train images with repeating. train_util.py:1856
INFO 0 reg images. train_util.py:1859
WARNING no regularization images / 正則化画像が見つかりませんでした train_util.py:1864
INFO [Dataset 0] config_util.py:572
batch_size: 1
resolution: (512, 512)
enable_bucket: True
network_multiplier: 1.0
min_bucket_reso: 256
max_bucket_reso: 2048
bucket_reso_steps: 64
bucket_no_upscale: True
[Subset 0 of Dataset 0]
image_dir: "/data/crop-test/img/50_img woman"
image_count: 24
num_repeats: 50
shuffle_caption: False
keep_tokens: 0
keep_tokens_separator:
caption_separator: ,
secondary_separator: None
enable_wildcard: False
caption_dropout_rate: 0.0
caption_dropout_every_n_epoches: 0
caption_tag_dropout_rate: 0.0
caption_prefix: None
caption_suffix: None
color_aug: False
flip_aug: False
face_crop_aug_range: None
random_crop: False
token_warmup_min: 1,
token_warmup_step: 0,
alpha_mask: False,
is_reg: False
class_tokens: img woman
caption_extension: .txt
INFO [Dataset 0] config_util.py:578
INFO loading image sizes. train_util.py:911
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 24/24 [00:00