Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'tuple' object has no attribute 'format' #5

Open
40740 opened this issue Sep 4, 2024 · 2 comments
Open

'tuple' object has no attribute 'format' #5

40740 opened this issue Sep 4, 2024 · 2 comments

Comments

@40740
Copy link

40740 commented Sep 4, 2024

Adding LR flips... (doubling the number of images from 13 to 26)
Generating 26 captions using blip in style mode...
All captions loaded from disk, skipping captioning...
WARNING: no captioning text was given and we're not doing chatgpt cleanup...
Concept mode: style
!!! Exception during processing !!! 'tuple' object has no attribute 'format'
Traceback (most recent call last):
File "//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 "//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 "//ComfyUI/execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "//ComfyUI/execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "//ComfyUI/custom_nodes/sd-lora-trainer/node.py", line 107, in train_lora
progress_f = next(train_generator)
File "//ComfyUI/custom_nodes/sd-lora-trainer/main.py", line 69, in train
config, input_dir = preprocess(
File "//ComfyUI/custom_nodes/sd-lora-trainer/trainer/preprocess.py", line 97, in preprocess
config = load_and_save_masks_and_captions(
File "//ComfyUI/custom_nodes/sd-lora-trainer/trainer/preprocess.py", line 811, in load_and_save_masks_and_captions
captions = [config.prompt_modifier.format(caption) for caption in captions]
File "//ComfyUI/custom_nodes/sd-lora-trainer/trainer/preprocess.py", line 811, in
captions = [config.prompt_modifier.format(caption) for caption in captions]
AttributeError: 'tuple' object has no attribute 'format'

@40740
Copy link
Author

40740 commented Sep 4, 2024

Python and Comfyui both report the same error

@Zorbaq
Copy link

Zorbaq commented Sep 5, 2024

Must be the config.prompt_modifier addition. No problem in 1568f10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants