Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 17:12:00-648383 INFO Version: v22.0.1
- 17:12:00-660230 INFO nVidia toolkit detected
- 17:12:02-253904 INFO Torch 2.0.1+cu118
- 17:12:02-280180 INFO Torch backend: nVidia CUDA 11.8 cuDNN 8700
- 17:12:02-295041 INFO Torch detected GPU: NVIDIA GeForce RTX 3090 VRAM 24260
- Arch (8, 6) Cores 82
- 17:12:02-297403 INFO Verifying modules installation status from
- /workspace/kohya_ss/requirements_runpod.txt...
- 17:12:02-310830 INFO Verifying modules installation status from
- requirements.txt...
- 17:12:10-195676 INFO headless: True
- 17:12:10-207025 INFO Load CSS...
- Running on local URL: http://0.0.0.0:3011
- To create a public link, set `share=True` in `launch()`.
- 17:26:04-447990 INFO Loading config...
- 17:37:04-696329 INFO Copy /workspace/SCARLETT to
- /workspace/SCARLETT-CAMILA_MORRONE/img/25_camila
- morrone woman...
- 17:37:05-214138 INFO Copy /workspace/WOMAN to
- /workspace/SCARLETT-CAMILA_MORRONE/reg/1_woman...
- 17:37:16-843933 INFO Done creating kohya_ss training folder structure at
- /workspace/SCARLETT-CAMILA_MORRONE...
- 17:39:16-467957 INFO Start training LoRA Standard ...
- 17:39:16-472754 INFO Checking for duplicate image filenames in training data
- directory...
- 17:39:16-479060 INFO Valid image folder names found in:
- /workspace/SCARLETT-CAMILA_MORRONE/img
- 17:39:16-484032 INFO Valid image folder names found in:
- /workspace/SCARLETT-CAMILA_MORRONE/reg
- 17:39:16-486844 INFO Headless mode, skipping verification if model already
- exist... if model already exist it will be
- overwritten...
- 17:39:16-491651 INFO Folder 25_camila morrone woman: 53 images found
- 17:39:16-494328 INFO Folder 25_camila morrone woman: 1325 steps
- 17:39:16-497702 WARNING Regularisation images are used... Will double the
- number of steps required...
- 17:39:16-503442 INFO Total steps: 1325
- 17:39:16-508258 INFO Train batch size: 1
- 17:39:16-510891 INFO Gradient accumulation steps: 1
- 17:39:16-513517 INFO Epoch: 10
- 17:39:16-515946 INFO Regulatization factor: 2
- 17:39:16-518322 INFO max_train_steps (1325 / 1 / 1 * 10 * 2) = 26500
- 17:39:16-521131 INFO stop_text_encoder_training = 0
- 17:39:16-523630 INFO lr_warmup_steps = 0
- 17:39:16-526828 INFO Saving training config to
- /workspace/SCARLETT-CAMILA_MORRONE/model/SCARLETT-CAMIL
- A_MORRONE_20231029-173916.json...
- 17:39:16-535180 INFO accelerate launch --num_cpu_threads_per_process=2
- "./sdxl_train_network.py" --enable_bucket
- --min_bucket_reso=256 --max_bucket_reso=2048
- --pretrained_model_name_or_path="/workspace/stable-diff
- usion-webui/models/Stable-diffusion/sd_xl_base_1.0_0.9v
- ae.safetensors"
- --train_data_dir="/workspace/SCARLETT-CAMILA_MORRONE/im
- g"
- --reg_data_dir="/workspace/SCARLETT-CAMILA_MORRONE/reg"
- --resolution="1024,1024"
- --output_dir="/workspace/SCARLETT-CAMILA_MORRONE/model"
- --logging_dir="/workspace/SCARLETT-CAMILA_MORRONE/log"
- --network_alpha="1" --save_model_as=safetensors
- --network_module=networks.lora --text_encoder_lr=0.0003
- --unet_lr=0.0003 --network_dim=256
- --output_name="SCARLETT-CAMILA_MORRONE"
- --lr_scheduler_num_cycles="10" --no_half_vae
- --learning_rate="0.0003" --lr_scheduler="constant"
- --train_batch_size="1" --max_train_steps="26500"
- --save_every_n_epochs="1" --mixed_precision="bf16"
- --save_precision="bf16" --caption_extension=".txt"
- --cache_latents --cache_latents_to_disk
- --optimizer_type="Adafactor" --optimizer_args
- scale_parameter=False relative_step=False
- warmup_init=False --max_data_loader_n_workers="0"
- --bucket_reso_steps=64 --gradient_checkpointing
- --xformers --bucket_no_upscale --noise_offset=0.0
- 2023-10-29 17:39:30.632691: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
- 2023-10-29 17:39:30.632948: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
- 2023-10-29 17:39:30.639821: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
- 2023-10-29 17:39:31.077390: 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 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
- 2023-10-29 17:39:36.617810: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
- prepare tokenizers
- Downloading (…)olve/main/vocab.json: 0%| | 0.00/862k [00:00<?, ?B/s]
- Downloading (…)olve/main/vocab.json: 100%|██████████| 862k/862k [00:00<00:00, 2.10MB/s]
- Downloading (…)olve/main/vocab.json: 100%|██████████| 862k/862k [00:00<00:00, 2.09MB/s]
- Downloading (…)olve/main/merges.txt: 0%| | 0.00/525k [00:00<?, ?B/s]
- Downloading (…)olve/main/merges.txt: 100%|██████████| 525k/525k [00:00<00:00, 1.69MB/s]
- Downloading (…)olve/main/merges.txt: 100%|██████████| 525k/525k [00:00<00:00, 1.69MB/s]
- Downloading (…)cial_tokens_map.json: 0%| | 0.00/389 [00:00<?, ?B/s]
- Downloading (…)cial_tokens_map.json: 100%|██████████| 389/389 [00:00<00:00, 1.86MB/s]
- Downloading (…)okenizer_config.json: 0%| | 0.00/904 [00:00<?, ?B/s]
- Downloading (…)okenizer_config.json: 100%|██████████| 904/904 [00:00<00:00, 4.69MB/s]
- Using DreamBooth method.
- prepare images.
- found directory /workspace/SCARLETT-CAMILA_MORRONE/img/25_camila morrone woman contains 53 image files
- No caption file found for 53 images. Training will continue without captions for these images. If class token exists, it will be used. / 53枚の画像にキャプションファイルが見つかりませんでした。これらの画像についてはキャプションなしで学習を続行します。class tokenが存在する場合はそれを使います。
- /workspace/SCARLETT-CAMILA_MORRONE/img/25_camila morrone woman/SCARLETT_test1_face\MissScarlett23 - 1625852000322867200 - 3_1625850588486574088.jpg
- /workspace/SCARLETT-CAMILA_MORRONE/img/25_camila morrone woman/SCARLETT_test1_face\MissScarlett23 - 1625958978705412096 - 3_1625958652002664455.jpg
- /workspace/SCARLETT-CAMILA_MORRONE/img/25_camila morrone woman/SCARLETT_test1_face\MissScarlett23 - 1626160233855737856 - 3_1361587561626554368.jpg
- /workspace/SCARLETT-CAMILA_MORRONE/img/25_camila morrone woman/SCARLETT_test1_face\MissScarlett23 - 1628674856437809152 - 3_1496411943132930061.jpg
- /workspace/SCARLETT-CAMILA_MORRONE/img/25_camila morrone woman/SCARLETT_test1_face\MissScarlett23 - 1629102572203122688 - 3_1496831840203816964.jpg
- /workspace/SCARLETT-CAMILA_MORRONE/img/25_camila morrone woman/SCARLETT_test1_face\MissScarlett23 - 1630126904459100161 - 3_1630126204647882753.jpg... and 48 more
- found directory /workspace/SCARLETT-CAMILA_MORRONE/reg/1_woman contains 1000 image files
- No caption file found for 1000 images. Training will continue without captions for these images. If class token exists, it will be used. / 1000枚の画像にキャプションファイルが見つかりませんでした。これらの画像についてはキャプションなしで学習を続行します。class tokenが存在する場合はそれを使います。
- /workspace/SCARLETT-CAMILA_MORRONE/reg/1_woman/1024_WOMAN\woman_0001.jpg
- /workspace/SCARLETT-CAMILA_MORRONE/reg/1_woman/1024_WOMAN\woman_0002.jpg
- /workspace/SCARLETT-CAMILA_MORRONE/reg/1_woman/1024_WOMAN\woman_0003.jpg
- /workspace/SCARLETT-CAMILA_MORRONE/reg/1_woman/1024_WOMAN\woman_0004.jpg
- /workspace/SCARLETT-CAMILA_MORRONE/reg/1_woman/1024_WOMAN\woman_0005.jpg
- /workspace/SCARLETT-CAMILA_MORRONE/reg/1_woman/1024_WOMAN\woman_0006.jpg... and 995 more
- 1325 train images with repeating.
- 1000 reg images.
- [Dataset 0]
- batch_size: 1
- resolution: (1024, 1024)
- enable_bucket: True
- min_bucket_reso: 256
- max_bucket_reso: 2048
- bucket_reso_steps: 64
- bucket_no_upscale: True
- [Subset 0 of Dataset 0]
- image_dir: "/workspace/SCARLETT-CAMILA_MORRONE/img/25_camila morrone woman"
- image_count: 53
- num_repeats: 25
- shuffle_caption: False
- keep_tokens: 0
- 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,
- is_reg: False
- class_tokens: camila morrone woman
- caption_extension: .txt
- [Subset 1 of Dataset 0]
- image_dir: "/workspace/SCARLETT-CAMILA_MORRONE/reg/1_woman"
- image_count: 1000
- num_repeats: 1
- shuffle_caption: False
- keep_tokens: 0
- 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,
- is_reg: True
- class_tokens: woman
- caption_extension: .txt
- [Dataset 0]
- loading image sizes.
- 0%| | 0/1053 [00:00<?, ?it/s]
- 100%|██████████| 1053/1053 [00:02<00:00, 383.33it/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 (576, 576), count: 25
- bucket 1: resolution (576, 1024), count: 25
- bucket 2: resolution (640, 1152), count: 125
- bucket 3: resolution (832, 1088), count: 750
- bucket 4: resolution (896, 1088), count: 300
- bucket 5: resolution (896, 1152), count: 25
- bucket 6: resolution (1024, 1024), count: 1350
- bucket 7: resolution (1088, 832), count: 25
- bucket 8: resolution (1152, 640), count: 25
- mean ar error (without repeats): 0.0007962156055837949
- preparing accelerator
- loading model for process 0/1
- load StableDiffusion checkpoint: /workspace/stable-diffusion-webui/models/Stable-diffusion/sd_xl_base_1.0_0.9vae.safetensors
- building U-Net
- loading U-Net from checkpoint
- U-Net: <All keys matched successfully>
- building text encoders
- loading text encoders from checkpoint
- text encoder 1: <All keys matched successfully>
- text encoder 2: <All keys matched successfully>
- building VAE
- loading VAE from checkpoint
- VAE: <All keys matched successfully>
- Enable xformers for U-Net
- import network module: networks.lora
- [Dataset 0]
- caching latents.
- checking cache validity...
- 0%| | 0/1053 [00:00<?, ?it/s]
- 100%|██████████| 1053/1053 [00:00<00:00, 5177.35it/s]
- caching latents...
- 0%| | 0/1053 [00:00<?, ?it/s]
- 100%|██████████| 1053/1053 [05:39<00:00, 3.10it/s]
- create LoRA network. base dim (rank): 256, alpha: 1.0
- neuron dropout: p=None, rank dropout: p=None, module dropout: p=None
- create LoRA for Text Encoder 1:
- create LoRA for Text Encoder 2:
- create LoRA for Text Encoder: 264 modules.
- create LoRA for U-Net: 722 modules.
- enable LoRA for text encoder
- enable LoRA for U-Net
- prepare optimizer, data loader etc.
- use Adafactor optimizer | {'scale_parameter': False, 'relative_step': False, 'warmup_init': False}
- because max_grad_norm is set, clip_grad_norm is enabled. consider set to 0 / max_grad_normが設定されているためclip_grad_normが有効になります。0に設定して無効にしたほうがいいかもしれません
- constant_with_warmup will be good / スケジューラはconstant_with_warmupが良いかもしれません
- running training / 学習開始
- num train images * repeats / 学習画像の数×繰り返し回数: 1325
- num reg images / 正則化画像の数: 1000
- num batches per epoch / 1epochのバッチ数: 2650
- num epochs / epoch数: 10
- batch size per device / バッチサイズ: 1
- gradient accumulation steps / 勾配を合計するステップ数 = 1
- total optimization steps / 学習ステップ数: 26500
- steps: 0%| | 0/26500 [00:00<?, ?it/s]
- epoch 1/10
- Traceback (most recent call last):
- File "/workspace/kohya_ss/./sdxl_train_network.py", line 183, in <module>
- trainer.train(args)
- File "/workspace/kohya_ss/train_network.py", line 792, in train
- noise_pred = self.call_unet(
- File "/workspace/kohya_ss/./sdxl_train_network.py", line 163, in call_unet
- noise_pred = unet(noisy_latents, timesteps, text_embedding, vector_embedding)
- File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
- return forward_call(*args, **kwargs)
- File "/workspace/kohya_ss/venv/lib/python3.10/site-packages/accelerate/utils/operations.py", line 636, in forward
- return model_forward(*args, **kwargs)
- File "/workspace/kohya_ss/venv/lib/python3.10/site-packages/accelerate/utils/operations.py", line 624, in __call__
- return convert_to_fp32(self.model_forward(*args, **kwargs))
- File "/usr/local/lib/python3.10/dist-packages/torch/amp/autocast_mode.py", line 14, in decorate_autocast
- return func(*args, **kwargs)
- File "/workspace/kohya_ss/library/sdxl_original_unet.py", line 1088, in forward
- h = call_module(module, h, emb, context)
- File "/workspace/kohya_ss/library/sdxl_original_unet.py", line 1073, in call_module
- x = layer(x, context)
- File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
- return forward_call(*args, **kwargs)
- File "/workspace/kohya_ss/library/sdxl_original_unet.py", line 728, in forward
- hidden_states = block(hidden_states, context=encoder_hidden_states, timestep=timestep)
- File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
- return forward_call(*args, **kwargs)
- File "/workspace/kohya_ss/library/sdxl_original_unet.py", line 647, in forward
- output = torch.utils.checkpoint.checkpoint(
- File "/usr/local/lib/python3.10/dist-packages/torch/utils/checkpoint.py", line 249, in checkpoint
- return CheckpointFunction.apply(function, preserve, *args)
- File "/usr/local/lib/python3.10/dist-packages/torch/autograd/function.py", line 506, in apply
- return super().apply(*args, **kwargs) # type: ignore[misc]
- File "/usr/local/lib/python3.10/dist-packages/torch/utils/checkpoint.py", line 107, in forward
- outputs = run_function(*args)
- File "/workspace/kohya_ss/library/sdxl_original_unet.py", line 643, in custom_forward
- return func(*inputs)
- File "/workspace/kohya_ss/library/sdxl_original_unet.py", line 633, in forward_body
- hidden_states = self.ff(self.norm3(hidden_states)) + hidden_states
- File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
- return forward_call(*args, **kwargs)
- File "/workspace/kohya_ss/library/sdxl_original_unet.py", line 577, in forward
- hidden_states = module(hidden_states)
- File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
- return forward_call(*args, **kwargs)
- File "/workspace/kohya_ss/library/sdxl_original_unet.py", line 555, in forward
- hidden_states, gate = self.proj(hidden_states).chunk(2, dim=-1)
- File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
- return forward_call(*args, **kwargs)
- File "/workspace/kohya_ss/networks/lora.py", line 117, in forward
- return org_forwarded + lx * self.multiplier * scale
- torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 18.00 MiB (GPU 0; 23.69 GiB total capacity; 12.75 GiB already allocated; 12.69 MiB free; 12.90 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
- steps: 0%| | 0/26500 [00:00<?, ?it/s]
- Traceback (most recent call last):
- File "/workspace/kohya_ss/venv/bin/accelerate", line 8, in <module>
- sys.exit(main())
- File "/workspace/kohya_ss/venv/lib/python3.10/site-packages/accelerate/commands/accelerate_cli.py", line 47, in main
- args.func(args)
- File "/workspace/kohya_ss/venv/lib/python3.10/site-packages/accelerate/commands/launch.py", line 986, in launch_command
- simple_launcher(args)
- File "/workspace/kohya_ss/venv/lib/python3.10/site-packages/accelerate/commands/launch.py", line 628, in simple_launcher
- raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
- subprocess.CalledProcessError: Command '['/workspace/kohya_ss/venv/bin/python3', './sdxl_train_network.py', '--enable_bucket', '--min_bucket_reso=256', '--max_bucket_reso=2048', '--pretrained_model_name_or_path=/workspace/stable-diffusion-webui/models/Stable-diffusion/sd_xl_base_1.0_0.9vae.safetensors', '--train_data_dir=/workspace/SCARLETT-CAMILA_MORRONE/img', '--reg_data_dir=/workspace/SCARLETT-CAMILA_MORRONE/reg', '--resolution=1024,1024', '--output_dir=/workspace/SCARLETT-CAMILA_MORRONE/model', '--logging_dir=/workspace/SCARLETT-CAMILA_MORRONE/log', '--network_alpha=1', '--save_model_as=safetensors', '--network_module=networks.lora', '--text_encoder_lr=0.0003', '--unet_lr=0.0003', '--network_dim=256', '--output_name=SCARLETT-CAMILA_MORRONE', '--lr_scheduler_num_cycles=10', '--no_half_vae', '--learning_rate=0.0003', '--lr_scheduler=constant', '--train_batch_size=1', '--max_train_steps=26500', '--save_every_n_epochs=1', '--mixed_precision=bf16', '--save_precision=bf16', '--caption_extension=.txt', '--cache_latents', '--cache_latents_to_disk', '--optimizer_type=Adafactor', '--optimizer_args', 'scale_parameter=False', 'relative_step=False', 'warmup_init=False', '--max_data_loader_n_workers=0', '--bucket_reso_steps=64', '--gradient_checkpointing', '--xformers', '--bucket_no_upscale', '--noise_offset=0.0']' returned non-zero exit status 1.
Advertisement
Add Comment
Please, Sign In to add comment