[Dataset 0]
loading image sizes.
100%|██████████████████████████████████████████████████████████████████████████████████████████████████| 22/22 [00:00<00:00, 2756.77it/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は無視されます
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\AI_drawer\LORA\#kohya_ss\train_network.py:873 in <module> │
│ │
│ 870 │ args = parser.parse_args() │
│ 871 │ args = train_util.read_config_from_file(args, parser) │
│ 872 │ │
│ ❱ 873 │ train(args) │
│ 874 │
│ │
│ C:\AI_drawer\LORA\#kohya_ss\train_network.py:135 in train │
│ │
│ 132 │ │ │ │ } │
│ 133 │ │ │
│ 134 │ │ blueprint = blueprint_generator.generate(user_config, args, tokenizer=tokenizer) │
│ ❱ 135 │ │ train_dataset_group = config_util.generate_dataset_group_by_blueprint(blueprint. │
│ 136 │ else: │
│ 137 │ │ # use arbitrary dataset class │
│ 138 │ │ train_dataset_group = train_util.load_arbitrary_dataset(args, tokenizer) │
│ │
│ C:\AI_drawer\LORA\#kohya_ss\library\config_util.py:436 in generate_dataset_group_by_blueprint │
│ │
│ 433 seed = random.randint(0, 2**31) # actual seed is seed + epoch_no │
│ 434 for i, dataset in enumerate(datasets): │
│ 435 │ print(f"[Dataset {i}]") │
│ ❱ 436 │ dataset.make_buckets() │
│ 437 │ dataset.set_seed(seed) │
│ 438 │
│ 439 return DatasetGroup(datasets) │
│ │
│ C:\AI_drawer\LORA\#kohya_ss\library\train_util.py:633 in make_buckets │
│ │
│ 630 │ │ │ img_ar_errors = [] │
│ 631 │ │ │ for image_info in self.image_data.values(): │
│ 632 │ │ │ │ image_width, image_height = image_info.image_size │
│ ❱ 633 │ │ │ │ image_info.bucket_reso, image_info.resized_size, ar_error = self.bucket_ │
│ 634 │ │ │ │ │ image_width, image_height │
│ 635 │ │ │ │ ) │
│ 636 │
│ │
│ C:\AI_drawer\LORA\#kohya_ss\library\train_util.py:225 in select_bucket │
│ │
│ 222 │ │ │
│ 223 │ │ self.add_if_new_reso(reso) │
│ 224 │ │ │
│ ❱ 225 │ │ ar_error = (reso[0] / reso[1]) - aspect_ratio │
│ 226 │ │ return reso, resized_size, ar_error │
│ 227 │
│ 228 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ZeroDivisionError: division by zero
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\Users\KMJ01\AppData\Local\Programs\Python\Python310\lib\runpy.py:196 in _run_module_as_main │
│ │
│ 193 │ main_globals = sys.modules["__main__"].__dict__ │
│ 194 │ if alter_argv: │
│ 195 │ │ sys.argv[0] = mod_spec.origin │
│ ❱ 196 │ return _run_code(code, main_globals, None, │
│ 197 │ │ │ │ │ "__main__", mod_spec) │
│ 198 │
│ 199 def run_module(mod_name, init_globals=None, │
│ │
│ C:\Users\KMJ01\AppData\Local\Programs\Python\Python310\lib\runpy.py:86 in _run_code │
│ │
│ 83 │ │ │ │ │ __loader__ = loader, │
│ 84 │ │ │ │ │ __package__ = pkg_name, │
│ 85 │ │ │ │ │ __spec__ = mod_spec) │
│ ❱ 86 │ exec(code, run_globals) │
│ 87 │ return run_globals │
│ 88 │
│ 89 def _run_module_code(code, init_globals=None, │
│ │
│ in <module>:7 │
│ │
│ 4 from accelerate.commands.accelerate_cli import main │
│ 5 if __name__ == '__main__': │
│ 6 │ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) │
│ ❱ 7 │ sys.exit(main()) │
│ 8 │
│ │
│ C:\Users\KMJ01\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\commands\acc │
│ elerate_cli.py:45 in main │
│ │
│ 42 │ │ exit(1) │
│ 43 │ │
│ 44 │ # Run │
│ ❱ 45 │ args.func(args) │
│ 46 │
│ 47 │
│ 48 if __name__ == "__main__": │
│ │
│ C:\Users\KMJ01\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\commands\lau │
│ nch.py:918 in launch_command │
│ │
│ 915 │ elif defaults is not None and defaults.compute_environment == ComputeEnvironment.AMA │
│ 916 │ │ sagemaker_launcher(defaults, args) │
│ 917 │ else: │
│ ❱ 918 │ │ simple_launcher(args) │
│ 919 │
│ 920 │
│ 921 def main(): │
│ │
│ C:\Users\KMJ01\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\commands\lau │
│ nch.py:580 in simple_launcher │
│ │
│ 577 │ process.wait() │
│ 578 │ if process.returncode != 0: │
│ 579 │ │ if not args.quiet: │
│ ❱ 580 │ │ │ raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd) │
│ 581 │ │ else: │
│ 582 │ │ │ sys.exit(1) │
│ 583 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
CalledProcessError: Command '['C:\\Users\\
loading image sizes.
100%|██████████████████████████████████████████████████████████████████████████████████████████████████| 22/22 [00:00<00:00, 2756.77it/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は無視されます
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\AI_drawer\LORA\#kohya_ss\train_network.py:873 in <module> │
│ │
│ 870 │ args = parser.parse_args() │
│ 871 │ args = train_util.read_config_from_file(args, parser) │
│ 872 │ │
│ ❱ 873 │ train(args) │
│ 874 │
│ │
│ C:\AI_drawer\LORA\#kohya_ss\train_network.py:135 in train │
│ │
│ 132 │ │ │ │ } │
│ 133 │ │ │
│ 134 │ │ blueprint = blueprint_generator.generate(user_config, args, tokenizer=tokenizer) │
│ ❱ 135 │ │ train_dataset_group = config_util.generate_dataset_group_by_blueprint(blueprint. │
│ 136 │ else: │
│ 137 │ │ # use arbitrary dataset class │
│ 138 │ │ train_dataset_group = train_util.load_arbitrary_dataset(args, tokenizer) │
│ │
│ C:\AI_drawer\LORA\#kohya_ss\library\config_util.py:436 in generate_dataset_group_by_blueprint │
│ │
│ 433 seed = random.randint(0, 2**31) # actual seed is seed + epoch_no │
│ 434 for i, dataset in enumerate(datasets): │
│ 435 │ print(f"[Dataset {i}]") │
│ ❱ 436 │ dataset.make_buckets() │
│ 437 │ dataset.set_seed(seed) │
│ 438 │
│ 439 return DatasetGroup(datasets) │
│ │
│ C:\AI_drawer\LORA\#kohya_ss\library\train_util.py:633 in make_buckets │
│ │
│ 630 │ │ │ img_ar_errors = [] │
│ 631 │ │ │ for image_info in self.image_data.values(): │
│ 632 │ │ │ │ image_width, image_height = image_info.image_size │
│ ❱ 633 │ │ │ │ image_info.bucket_reso, image_info.resized_size, ar_error = self.bucket_ │
│ 634 │ │ │ │ │ image_width, image_height │
│ 635 │ │ │ │ ) │
│ 636 │
│ │
│ C:\AI_drawer\LORA\#kohya_ss\library\train_util.py:225 in select_bucket │
│ │
│ 222 │ │ │
│ 223 │ │ self.add_if_new_reso(reso) │
│ 224 │ │ │
│ ❱ 225 │ │ ar_error = (reso[0] / reso[1]) - aspect_ratio │
│ 226 │ │ return reso, resized_size, ar_error │
│ 227 │
│ 228 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ZeroDivisionError: division by zero
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\Users\KMJ01\AppData\Local\Programs\Python\Python310\lib\runpy.py:196 in _run_module_as_main │
│ │
│ 193 │ main_globals = sys.modules["__main__"].__dict__ │
│ 194 │ if alter_argv: │
│ 195 │ │ sys.argv[0] = mod_spec.origin │
│ ❱ 196 │ return _run_code(code, main_globals, None, │
│ 197 │ │ │ │ │ "__main__", mod_spec) │
│ 198 │
│ 199 def run_module(mod_name, init_globals=None, │
│ │
│ C:\Users\KMJ01\AppData\Local\Programs\Python\Python310\lib\runpy.py:86 in _run_code │
│ │
│ 83 │ │ │ │ │ __loader__ = loader, │
│ 84 │ │ │ │ │ __package__ = pkg_name, │
│ 85 │ │ │ │ │ __spec__ = mod_spec) │
│ ❱ 86 │ exec(code, run_globals) │
│ 87 │ return run_globals │
│ 88 │
│ 89 def _run_module_code(code, init_globals=None, │
│ │
│ in <module>:7 │
│ │
│ 4 from accelerate.commands.accelerate_cli import main │
│ 5 if __name__ == '__main__': │
│ 6 │ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) │
│ ❱ 7 │ sys.exit(main()) │
│ 8 │
│ │
│ C:\Users\KMJ01\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\commands\acc │
│ elerate_cli.py:45 in main │
│ │
│ 42 │ │ exit(1) │
│ 43 │ │
│ 44 │ # Run │
│ ❱ 45 │ args.func(args) │
│ 46 │
│ 47 │
│ 48 if __name__ == "__main__": │
│ │
│ C:\Users\KMJ01\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\commands\lau │
│ nch.py:918 in launch_command │
│ │
│ 915 │ elif defaults is not None and defaults.compute_environment == ComputeEnvironment.AMA │
│ 916 │ │ sagemaker_launcher(defaults, args) │
│ 917 │ else: │
│ ❱ 918 │ │ simple_launcher(args) │
│ 919 │
│ 920 │
│ 921 def main(): │
│ │
│ C:\Users\KMJ01\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\commands\lau │
│ nch.py:580 in simple_launcher │
│ │
│ 577 │ process.wait() │
│ 578 │ if process.returncode != 0: │
│ 579 │ │ if not args.quiet: │
│ ❱ 580 │ │ │ raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd) │
│ 581 │ │ else: │
│ 582 │ │ │ sys.exit(1) │
│ 583 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
CalledProcessError: Command '['C:\\Users\\
대충 이러고 진행 자체가 안되는데 혹시나해서 bucket 비활성화하니까 지금 진행은 되는중...
근데도 에러가 막 뜨는데 사실 위가 정석대로 한 부분인대도 안되는거... 왜그런지 아시는분?