WSH032 / kohya-config-webui

A WebUI for making config files used by kohya_sd_script. 一个用于生成kohya-ss训练脚本使用的toml配置文件的WebUI
Apache License 2.0
94 stars 4 forks source link

求助AssertionError: resolution is required / resolution #10

Closed 14790897 closed 1 year ago

14790897 commented 1 year ago

Loading settings from /content/drive/MyDrive/Lora/kohya_config_webui_save/kohya_config_webui_save.toml... /content/drive/MyDrive/Lora/kohya_config_webui_save/kohya_config_webui_save prepare tokenizer update token length: 225 Using DreamBooth method. ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /content/sd-scripts/train_network.py:873 in │ │ │ │ 870 │ args = parser.parse_args() │ │ 871 │ args = train_util.read_config_from_file(args, parser) │ │ 872 │ │ │ ❱ 873 │ train(args) │ │ 874 │ │ │ │ /content/sd-scripts/train_network.py:135 in train │ │ │ │ 132 │ │ │ │ } │ │ 133 │ │ │ │ 134 │ │ blueprint = blueprint_generator.generate(user_config, args, to │ │ ❱ 135 │ │ train_dataset_group = config_util.generate_dataset_group_by_bl │ │ 136 │ else: │ │ 137 │ │ # use arbitrary dataset class │ │ 138 │ │ train_dataset_group = train_util.load_arbitrary_dataset(args, │ │ │ │ /content/sd-scripts/library/config_util.py:375 in │ │ generate_dataset_group_by_blueprint │ │ │ │ 372 │ dataset_klass = FineTuningDataset │ │ 373 │ │ │ 374 │ subsets = [subset_klass(asdict(subset_blueprint.params)) for sub │ │ ❱ 375 │ dataset = dataset_klass(subsets=subsets, asdict(dataset_blueprin │ │ 376 │ datasets.append(dataset) │ │ 377 │ │ 378 # print info │ │ │ │ /content/sd-scripts/library/train_util.py:1028 in init │ │ │ │ 1025 │ ) -> None: │ │ 1026 │ │ super().init(tokenizer, max_token_length, resolution, deb │ │ 1027 │ │ │ │ ❱ 1028 │ │ assert resolution is not None, f"resolution is required / res │ │ 1029 │ │ │ │ 1030 │ │ self.batch_size = batch_size │ │ 1031 │ │ self.size = min(self.width, self.height) # 短いほう │ ╰──────────────────────────────────────────────────────────────────────────────╯ AssertionError: resolution is required / resolution(解像度)指定は必須です ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /usr/local/bin/accelerate:8 in │ │ │ │ 5 from accelerate.commands.accelerate_cli import main │ │ 6 if name == 'main': │ │ 7 │ sys.argv[0] = re.sub(r'(-script.pyw|.exe)?$', '', sys.argv[0]) │ │ ❱ 8 │ sys.exit(main()) │ │ 9 │ │ │ │ /usr/local/lib/python3.10/dist-packages/accelerate/commands/accelerate_cli.p │ │ y:45 in main │ │ │ │ 42 │ │ exit(1) │ │ 43 │ │ │ 44 │ # Run │ │ ❱ 45 │ args.func(args) │ │ 46 │ │ 47 │ │ 48 if name == "main": │ │ │ │ /usr/local/lib/python3.10/dist-packages/accelerate/commands/launch.py:1104 │ │ in launch_command │ │ │ │ 1101 │ elif defaults is not None and defaults.compute_environment == Com │ │ 1102 │ │ sagemaker_launcher(defaults, args) │ │ 1103 │ else: │ │ ❱ 1104 │ │ simple_launcher(args) │ │ 1105 │ │ 1106 │ │ 1107 def main(): │ │ │ │ /usr/local/lib/python3.10/dist-packages/accelerate/commands/launch.py:567 in │ │ simple_launcher │ │ │ │ 564 │ process = subprocess.Popen(cmd, env=current_env) │ │ 565 │ process.wait() │ │ 566 │ if process.returncode != 0: │ │ ❱ 567 │ │ raise subprocess.CalledProcessError(returncode=process.return │ │ 568 │ │ 569 │ │ 570 def multi_gpu_launcher(args): │ ╰──────────────────────────────────────────────────────────────────────────────╯ CalledProcessError: Command '['/usr/bin/python3', 'train_network.py', '--config_file=/content/drive/MyDrive/Lora/kohya_config_webui_save/kohyaconfig webui_save.toml', '--sample_prompts=/content/drive/MyDrive/Lora/kohya_config_webui_save/kohya_conf ig_webui_save.toml']' returned non-zero exit status 1.

14790897 commented 1 year ago

不知道为啥,今天就好了,好像是因为我把笔记本复制到自己的谷歌云盘后就好了