Open pandayummy opened 3 months ago
Error occurred when executing InitFluxLoRATraining:
'utf-8' codec can't decode byte 0xa1 in position 681: invalid start byte
File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\execution.py", line 317, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\execution.py", line 192, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\nodes.py", line 355, in init_training training_loop = network_trainer.init_train(args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\train_network.py", line 308, in init_train train_dataset_group = config_util.generate_dataset_group_by_blueprint(blueprint.dataset_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\config_util.py", line 485, in generate_dataset_group_by_blueprint dataset = dataset_klass(subsets=subsets, asdict(dataset_blueprint.params)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\train_util.py", line 1828, in init img_paths, captions, sizes = load_dreambooth_dir(subset) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\train_util.py", line 1764, in load_dreambooth_dir cap_for_img = read_caption(img_path, subset.caption_extension, subset.enable_wildcard) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\train_util.py", line 1703, in read_caption raise e File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\train_util.py", line 1700, in read_caption lines = f.readlines() ^^^^^^^^^^^^^ File "", line 322, in decode
The caption files need to be utf-8 encoded.
Error occurred when executing InitFluxLoRATraining:
'utf-8' codec can't decode byte 0xa1 in position 681: invalid start byte
File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\execution.py", line 317, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\execution.py", line 192, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\nodes.py", line 355, in init_training training_loop = network_trainer.init_train(args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\train_network.py", line 308, in init_train train_dataset_group = config_util.generate_dataset_group_by_blueprint(blueprint.dataset_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\config_util.py", line 485, in generate_dataset_group_by_blueprint dataset = dataset_klass(subsets=subsets, asdict(dataset_blueprint.params)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\train_util.py", line 1828, in init img_paths, captions, sizes = load_dreambooth_dir(subset) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\train_util.py", line 1764, in load_dreambooth_dir cap_for_img = read_caption(img_path, subset.caption_extension, subset.enable_wildcard) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\train_util.py", line 1703, in read_caption raise e File "C:\Users\CHENG\AppData\Roaming\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\train_util.py", line 1700, in read_caption lines = f.readlines() ^^^^^^^^^^^^^ File "", line 322, in decode