Advertisement
Skettalee

Untitled

Aug 26th, 2023
1,274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 24.49 KB | Source Code | 0 0
  1. =============================================================
  2. Modules installed outside the virtual environment were found.
  3. This can cause issues. Please review the installed modules.
  4.  
  5. You can uninstall all local modules with:
  6.  
  7. deactivate
  8. pip freeze > uninstall.txt
  9. pip uninstall -y -r uninstall.txt
  10. =============================================================
  11.  
  12. 12:36:37-242693 INFO     Version: v21.8.8
  13.  
  14. 12:36:37-246701 INFO     nVidia toolkit detected
  15. 12:36:38-654884 INFO     Torch 2.0.1+cu118
  16. 12:36:38-677883 INFO     Torch backend: nVidia CUDA 11.8 cuDNN 8700
  17. 12:36:38-679883 INFO     Torch detected GPU: NVIDIA GeForce RTX 2080 SUPER VRAM 8192 Arch (7, 5) Cores 48
  18. 12:36:38-680892 INFO     Verifying modules instalation status from requirements_windows_torch2.txt...
  19. 12:36:38-681883 INFO     Verifying modules instalation status from requirements.txt...
  20. 12:36:40-930009 INFO     headless: False
  21. 12:36:40-936022 INFO     Load CSS...
  22. Running on local URL:  http://127.0.0.1:7860
  23.  
  24. To create a public link, set `share=True` in `launch()`.
  25. 12:41:45-191609 INFO     Skipping folder .gitkeep because it does not match kohya_ss expected syntax...
  26. 12:41:45-192619 INFO     Skipping folder Kc.01.jpg because it does not match kohya_ss expected syntax...
  27. 12:41:45-193608 INFO     Skipping folder Kc.02.jpg because it does not match kohya_ss expected syntax...
  28. 12:41:45-194608 INFO     Skipping folder Kc.03.jpg because it does not match kohya_ss expected syntax...
  29. 12:41:45-195608 INFO     Skipping folder Kc.04.jpg because it does not match kohya_ss expected syntax...
  30. 12:41:45-195608 INFO     Skipping folder Kc.05.jpg because it does not match kohya_ss expected syntax...
  31. 12:41:45-196617 INFO     Skipping folder Kc.06.jpg because it does not match kohya_ss expected syntax...
  32. 12:41:45-197608 INFO     Skipping folder Kc.07.jpg because it does not match kohya_ss expected syntax...
  33. 12:41:45-197608 INFO     Skipping folder Kc.08.jpg because it does not match kohya_ss expected syntax...
  34. 12:41:45-198608 INFO     Skipping folder Kc.09.jpg because it does not match kohya_ss expected syntax...
  35. 12:41:45-199608 INFO     Skipping folder Kc.10.jpg because it does not match kohya_ss expected syntax...
  36. 12:41:45-200608 INFO     Skipping folder Kc.11.jpg because it does not match kohya_ss expected syntax...
  37. 12:41:45-200608 INFO     Skipping folder Kc.12.jpg because it does not match kohya_ss expected syntax...
  38. 12:41:45-201608 INFO     Skipping folder Kc.13.jpg because it does not match kohya_ss expected syntax...
  39. 12:41:45-202617 INFO     Skipping folder Kc.14.jpg because it does not match kohya_ss expected syntax...
  40. 12:41:45-202617 INFO     Skipping folder Kc.15.jpg because it does not match kohya_ss expected syntax...
  41. 12:41:45-203609 INFO     Skipping folder Kc.16.jpg because it does not match kohya_ss expected syntax...
  42. 12:41:45-203609 INFO     Skipping folder Kc.17.jpg because it does not match kohya_ss expected syntax...
  43. 12:41:45-204947 INFO     Skipping folder Kc.18.jpg because it does not match kohya_ss expected syntax...
  44. 12:41:45-205938 INFO     Skipping folder Kc.20.jpg because it does not match kohya_ss expected syntax...
  45. 12:41:45-205938 INFO     Skipping folder Kc.21.jpg because it does not match kohya_ss expected syntax...
  46. 12:41:45-206938 INFO     Skipping folder Kc.22.jpg because it does not match kohya_ss expected syntax...
  47. 12:41:45-207947 INFO     Skipping folder Kc.23.jpg because it does not match kohya_ss expected syntax...
  48. 12:41:45-208948 INFO     Skipping folder Kc.24.jpg because it does not match kohya_ss expected syntax...
  49. 12:41:45-209938 INFO     Skipping folder Kc.25.jpg because it does not match kohya_ss expected syntax...
  50. 12:41:45-210947 INFO     Skipping folder Kc.26.jpg because it does not match kohya_ss expected syntax...
  51. 12:44:06-051960 INFO     Copy F:\sd.CΩDE\FaceDataSets\kc\512 to F:\sd.CΩDE\FaceDataSets\kc\Training Directory\img/20_Kc
  52.                          woman...
  53. 12:44:06-066519 INFO     Regularization images directory is missing... not copying regularisation images...
  54. 12:44:06-067517 INFO     Done creating kohya_ss training folder structure at F:\sd.CΩDE\FaceDataSets\kc\Training
  55.                          Directory...
  56. 12:56:47-210913 INFO     Start training LoRA Standard ...
  57. 12:56:47-212432 INFO     Checking for duplicate image filenames in training data directory...
  58. 12:56:47-214449 INFO     Valid image folder names found in: F:\sd.CΩDE\FaceDataSets\kc\Training Directory\img
  59. 12:56:47-215449 INFO     Folder 20_Kc woman: 25 images found
  60. 12:56:47-216451 INFO     Folder 20_Kc woman: 500 steps
  61. 12:56:47-217450 INFO     Total steps: 500
  62. 12:56:47-218450 INFO     Train batch size: 1
  63. 12:56:47-219443 INFO     Gradient accumulation steps: 1
  64. 12:56:47-219443 INFO     Epoch: 10
  65. 12:56:47-220449 INFO     Regulatization factor: 1
  66. 12:56:47-221955 INFO     max_train_steps (500 / 1 / 1 * 10 * 1) = 5000
  67. 12:56:47-222960 INFO     stop_text_encoder_training = 0
  68. 12:56:47-223959 INFO     lr_warmup_steps = 0
  69. 12:56:47-225959 INFO     Saving training config to F:\sd.CΩDE\FaceDataSets\kc\Training
  70.                          Directory\model\Kc_person_mine_20230826-125647.json...
  71. 12:56:47-227960 INFO     accelerate launch --num_cpu_threads_per_process=2 "./sdxl_train_network.py" --enable_bucket
  72.                          --min_bucket_reso=256 --max_bucket_reso=2048
  73.                          --pretrained_model_name_or_path="F:/sd.CΩDE/sd.webui/webui/models/Stable-diffusion/sd_xl_base_1                         .0.safetensors" --train_data_dir="F:\sd.CΩDE\FaceDataSets\kc\Training Directory\img"
  74.                          --resolution="1024,1024" --output_dir="F:\sd.CΩDE\FaceDataSets\kc\Training Directory\model"
  75.                          --logging_dir="F:\sd.CΩDE\FaceDataSets\kc\Training Directory\log" --network_alpha="1"
  76.                          --save_model_as=safetensors --network_module=networks.lora --text_encoder_lr=1e-05
  77.                          --unet_lr=0.0001 --network_dim=256 --output_name="Kc_person_mine"
  78.                          --lr_scheduler_num_cycles="10" --no_half_vae --learning_rate="0.0001" --lr_scheduler="cosine"
  79.                          --train_batch_size="1" --max_train_steps="5000" --save_every_n_epochs="1"
  80.                          --mixed_precision="bf16" --save_precision="bf16" --cache_latents --cache_latents_to_disk
  81.                          --optimizer_type="AdamW8bit" --optimizer_args scale_parameter=False relative_step=False
  82.                          warmup_init=False --max_data_loader_n_workers="0" --bucket_reso_steps=64 --xformers
  83.                          --bucket_no_upscale --noise_offset=0.0
  84. A matching Triton is not available, some optimizations will not be enabled.
  85. Error caught was: No module named 'triton'
  86. prepare tokenizers
  87. Downloading ()olve/main/vocab.json: 100%|██████████████████████████████████████████| 961k/961k [00:00<00:00, 8.88MB/s]
  88. F:\sd.CΩDE\kohya\kohya_ss\venv\lib\site-packages\huggingface_hub\file_download.py:133: UserWarning: `huggingface_hub` cache-system uses symlinks by default to efficiently store duplicated files but your machine does not support them in C:\Users\lee\.cache\huggingface\hub. Caching files will still work but in a degraded version that might require more space on your disk. This warning can be disabled by setting the `HF_HUB_DISABLE_SYMLINKS_WARNING` environment variable. For more details, see https://huggingface.co/docs/huggingface_hub/how-to-cache#limitations.
  89. To support symlinks on Windows, you either need to activate Developer Mode or to run Python as an administrator. In order to see activate developer mode, see this article: https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development
  90.   warnings.warn(message)
  91. Downloading ()olve/main/merges.txt: 100%|██████████████████████████████████████████| 525k/525k [00:00<00:00, 15.0MB/s]
  92. Downloading ()cial_tokens_map.json: 100%|████████████████████████████████████████████████████| 389/389 [00:00<?, ?B/s]
  93. Downloading ()okenizer_config.json: 100%|████████████████████████████████████████████████████| 905/905 [00:00<?, ?B/s]
  94. Downloading ()olve/main/vocab.json: 100%|██████████████████████████████████████████| 862k/862k [00:00<00:00, 31.6MB/s]
  95. Downloading ()olve/main/merges.txt: 100%|██████████████████████████████████████████| 525k/525k [00:00<00:00, 15.9MB/s]
  96. Downloading ()cial_tokens_map.json: 100%|████████████████████████████████████████████████████| 389/389 [00:00<?, ?B/s]
  97. Downloading ()okenizer_config.json: 100%|████████████████████████████████████████████████████| 904/904 [00:00<?, ?B/s]
  98. Using DreamBooth method.
  99. prepare images.
  100. found directory F:\sd.CΩDE\FaceDataSets\kc\Training Directory\img\20_Kc woman contains 25 image files
  101. No caption file found for 25 images. Training will continue without captions for these images. If class token exists, it will be used. / 25枚の画像にキャプションファイルが見つかりませんでした。これらの画像についてはキャプションなしで学習を 続行します。class tokenが存在する場合はそれを使います。
  102. F:\sd.CΩDE\FaceDataSets\kc\Training Directory\img\20_Kc woman\Kc.01.jpg
  103. F:\sd.CΩDE\FaceDataSets\kc\Training Directory\img\20_Kc woman\Kc.02.jpg
  104. F:\sd.CΩDE\FaceDataSets\kc\Training Directory\img\20_Kc woman\Kc.03.jpg
  105. F:\sd.CΩDE\FaceDataSets\kc\Training Directory\img\20_Kc woman\Kc.04.jpg
  106. F:\sd.CΩDE\FaceDataSets\kc\Training Directory\img\20_Kc woman\Kc.05.jpg
  107. F:\sd.CΩDE\FaceDataSets\kc\Training Directory\img\20_Kc woman\Kc.06.jpg... and 20 more
  108. 500 train images with repeating.
  109. 0 reg images.
  110. no regularization images / 正則化画像が見つかりませんでした
  111. [Dataset 0]
  112.   batch_size: 1
  113.   resolution: (1024, 1024)
  114.   enable_bucket: True
  115.   min_bucket_reso: 256
  116.   max_bucket_reso: 2048
  117.   bucket_reso_steps: 64
  118.   bucket_no_upscale: True
  119.  
  120.   [Subset 0 of Dataset 0]
  121.     image_dir: "F:\sd.CΩDE\FaceDataSets\kc\Training Directory\img\20_Kc woman"
  122.     image_count: 25
  123.     num_repeats: 20
  124.     shuffle_caption: False
  125.     keep_tokens: 0
  126.     caption_dropout_rate: 0.0
  127.     caption_dropout_every_n_epoches: 0
  128.     caption_tag_dropout_rate: 0.0
  129.     color_aug: False
  130.     flip_aug: False
  131.     face_crop_aug_range: None
  132.     random_crop: False
  133.     token_warmup_min: 1,
  134.     token_warmup_step: 0,
  135.     is_reg: False
  136.     class_tokens: Kc woman
  137.     caption_extension: .caption
  138.  
  139.  
  140. [Dataset 0]
  141. loading image sizes.
  142. 100%|█████████████████████████████████████████████████████████████████████████████████| 25/25 [00:00<00:00, 238.95it/s]
  143. make buckets
  144. 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は無視されます
  145. number of images (including repeats) / 各bucketの画像枚数(繰り返し回数を含む)
  146. bucket 0: resolution (512, 512), count: 500
  147. mean ar error (without repeats): 0.0
  148. preparing accelerator
  149. ╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
  150. │ F:\sd.CΩDE\kohya\kohya_ss\sdxl_train_network.py:176 in <module>                                  │
  151. │                                                                                                  │
  152. │   173 │   args = train_util.read_config_from_file(args, parser)                                  │
  153. │   174 │                                                                                          │
  154. │   175 │   trainer = SdxlNetworkTrainer()                                                         │
  155. │ ❱ 176 │   trainer.train(args)                                                                    │
  156. │   177                                                                                            │
  157. │                                                                                                  │
  158. │ F:\sd.CΩDE\kohya\kohya_ss\train_network.py:206 in train                                          │
  159. │                                                                                                  │
  160. │   203 │   │                                                                                      │
  161. │   204 │   │   # acceleratorを準備する                                                            │
  162. │   205 │   │   print("preparing accelerator")                                                     │
  163. │ ❱ 206 │   │   accelerator = train_util.prepare_accelerator(args)                                 │
  164. │   207 │   │   is_main_process = accelerator.is_main_process                                      │
  165. │   208 │   │                                                                                      │
  166. │   209 │   │   # mixed precisionに対応した型を用意しておき適宜castする                            │
  167. │                                                                                                  │
  168. │ F:\sd.CΩDE\kohya\kohya_ss\library\train_util.py:3725 in prepare_accelerator                      │
  169. │                                                                                                  │
  170. │   3722 │   │   │   if args.wandb_api_key is not None:                                            │
  171. │   3723 │   │   │   │   wandb.login(key=args.wandb_api_key)                                       │
  172. │   3724 │                                                                                         │
  173. │ ❱ 3725 │   accelerator = Accelerator(                                                            │
  174. │   3726 │   │   gradient_accumulation_steps=args.gradient_accumulation_steps,                     │
  175. │   3727 │   │   mixed_precision=args.mixed_precision,                                             │
  176. │   3728 │   │   log_with=log_with,                                                                │
  177. │                                                                                                  │
  178. │ F:\sd.CΩDE\kohya\kohya_ss\venv\lib\site-packages\accelerate\accelerator.py:442 in __init__       │
  179. │                                                                                                  │
  180. │    439 │   │   │   else:                                                                         │
  181. │    440 │   │   │   │   self.native_amp = is_bf16_available(True)                                 │
  182. │    441 │   │   │   if mixed_precision == "bf16" and not self.native_amp and not is_tpu_availabl  │
  183. │ ❱  442 │   │   │   │   raise ValueError(err.format(mode="bf16", requirement="PyTorch >= 1.10 an  │
  184. │    443 │   │                                                                                     │
  185. │    444 │   │   # Start of internal step tracking                                                 │
  186. │    445 │   │   self.step = 0                                                                     │
  187. ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
  188. ValueError: bf16 mixed precision requires PyTorch >= 1.10 and a supported device.
  189. ╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
  190. │ C:\Users\lee\AppData\Local\Programs\Python\Python310\lib\runpy.py:196 in _run_module_as_main     │
  191. │                                                                                                  │
  192. │   193 │   main_globals = sys.modules["__main__"].__dict__                                        │
  193. │   194 │   if alter_argv:                                                                         │
  194. │   195 │   │   sys.argv[0] = mod_spec.origin                                                      │
  195. │ ❱ 196 │   return _run_code(code, main_globals, None,                                             │
  196. │   197 │   │   │   │   │    "__main__", mod_spec)                                                 │
  197. │   198                                                                                            │
  198. │   199 def run_module(mod_name, init_globals=None,                                                │
  199. │                                                                                                  │
  200. │ C:\Users\lee\AppData\Local\Programs\Python\Python310\lib\runpy.py:86 in _run_code                │
  201. │                                                                                                  │
  202. │    83 │   │   │   │   │      __loader__ = loader,                                                │
  203. │    84 │   │   │   │   │      __package__ = pkg_name,                                             │
  204. │    85 │   │   │   │   │      __spec__ = mod_spec)                                                │
  205. │ ❱  86 │   exec(code, run_globals)                                                                │
  206. │    87 │   return run_globals                                                                     │
  207. │    88                                                                                            │
  208. │    89 def _run_module_code(code, init_globals=None,                                              │
  209. │                                                                                                  │
  210. │ in <module>:7                                                                                    │
  211. │                                                                                                  │
  212. │   4 from accelerate.commands.accelerate_cli import main                                          │
  213. │   5 if __name__ == '__main__':                                                                   │
  214. │   6 │   sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])                         │
  215. │ ❱ 7 │   sys.exit(main())                                                                         │
  216. │   8                                                                                              │
  217. │                                                                                                  │
  218. │ F:\sd.CΩDE\kohya\kohya_ss\venv\lib\site-packages\accelerate\commands\accelerate_cli.py:45 in     │
  219. │ main                                                                                             │
  220. │                                                                                                  │
  221. │   42 │   │   exit(1)                                                                             │
  222. │   43 │                                                                                           │
  223. │   44 │   # Run                                                                                   │
  224. │ ❱ 45 │   args.func(args)                                                                         │
  225. │   46                                                                                             │
  226. │   47                                                                                             │
  227. │   48 if __name__ == "__main__":                                                                  │
  228. │                                                                                                  │
  229. │ F:\sd.CΩDE\kohya\kohya_ss\venv\lib\site-packages\accelerate\commands\launch.py:918 in            │
  230. │ launch_command                                                                                   │
  231. │                                                                                                  │
  232. │   915 │   elif defaults is not None and defaults.compute_environment == ComputeEnvironment.AMA   │
  233. │   916 │   │   sagemaker_launcher(defaults, args)                                                 │
  234. │   917 │   else:                                                                                  │
  235. │ ❱ 918 │   │   simple_launcher(args)                                                              │
  236. │   919                                                                                            │
  237. │   920                                                                                            │
  238. │   921 def main():                                                                                │
  239. │                                                                                                  │
  240. │ F:\sd.CΩDE\kohya\kohya_ss\venv\lib\site-packages\accelerate\commands\launch.py:580 in            │
  241. │ simple_launcher                                                                                  │
  242. │                                                                                                  │
  243. │   577 │   process.wait()                                                                         │
  244. │   578 │   if process.returncode != 0:                                                            │
  245. │   579 │   │   if not args.quiet:                                                                 │
  246. │ ❱ 580 │   │   │   raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)    │
  247. │   581 │   │   else:                                                                              │
  248. │   582 │   │   │   sys.exit(1)                                                                    │
  249. │   583                                                                                            │
  250. ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
  251. CalledProcessError: Command '['F:\\sd.CΩDE\\kohya\\kohya_ss\\venv\\Scripts\\python.exe', './sdxl_train_network.py',
  252. '--enable_bucket', '--min_bucket_reso=256', '--max_bucket_reso=2048',
  253. '--pretrained_model_name_or_path=F:/sd.CΩDE/sd.webui/webui/models/Stable-diffusion/sd_xl_base_1.0.safetensors',
  254. '--train_data_dir=F:\\sd.CΩDE\\FaceDataSets\\kc\\Training Directory\\img', '--resolution=1024,1024',
  255. '--output_dir=F:\\sd.CΩDE\\FaceDataSets\\kc\\Training Directory\\model',
  256. '--logging_dir=F:\\sd.CΩDE\\FaceDataSets\\kc\\Training Directory\\log', '--network_alpha=1',
  257. '--save_model_as=safetensors', '--network_module=networks.lora', '--text_encoder_lr=1e-05', '--unet_lr=0.0001',
  258. '--network_dim=256', '--output_name=Kc_person_mine', '--lr_scheduler_num_cycles=10', '--no_half_vae',
  259. '--learning_rate=0.0001', '--lr_scheduler=cosine', '--train_batch_size=1', '--max_train_steps=5000',
  260. '--save_every_n_epochs=1', '--mixed_precision=bf16', '--save_precision=bf16', '--cache_latents',
  261. '--cache_latents_to_disk', '--optimizer_type=AdamW8bit', '--optimizer_args', 'scale_parameter=False',
  262. 'relative_step=False', 'warmup_init=False', '--max_data_loader_n_workers=0', '--bucket_reso_steps=64', '--xformers',
  263. '--bucket_no_upscale', '--noise_offset=0.0']' returned non-zero exit status 1.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement