Closed ailfreedom closed 8 months ago
Hello! Thanks for reporting. I did a clean setup of ComfyUI and the node and it is working. The transformers
package version may be causing the problem.
ComfyUI commit => https://github.com/comfyanonymous/ComfyUI/commit/e45d920ae392c608b9cfcb1f863cfc8688ebb518 prompt-generator-comfyui commit => https://github.com/alpertunga-bile/prompt-generator-comfyui/commit/5a69b8a496698788a368ffb1bb3d823210b79ce5
In my experiment I use transformers==4.36.1
. You can follow these instructions:
pip freeze > check_packages.txt
command in the command prompt. This prompt will create a file that includes the packages with versions which are installed.transformers
package version.
ComfyUI_windows_portable
folder..\python_embeded\python.exe -s -m pip freeze > check_packages.txt
command in the command prompt.transformers
package and check the numbers after the transformers-
string.pip install --upgrade transformers
command in the command prompt.
ComfyUI_windows_portable
folder..\python_embeded\python.exe -s -m pip install --upgrade transformers
command in the command prompt.thank you
Describe the bug Error occurred when executing Prompt Generator:
The following
model_kwargs
are not used by the model: ['guidance_scale'] (note: typos in the generate arguments will also show up in this list)File "D:\ComfyUI\execution.py", line 153, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\execution.py", line 83, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\execution.py", line 76, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\custom_nodes\prompt-generator-comfyui\prompt_generator.py", line 249, in generate generated_texts = self.get_generated_texts( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\custom_nodes\prompt-generator-comfyui\prompt_generator.py", line 108, in get_generated_texts results = generator.generate_multiple_output_texts(prompt, gen_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\custom_nodes\prompt-generator-comfyui\generator\generate.py", line 75, in generate_multiple_output_texts outputs = self.pipe(input, args) ^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\venv\Lib\site-packages\transformers\pipelines\text_generation.py", line 201, in call return super().call(text_inputs, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\venv\Lib\site-packages\transformers\pipelines\base.py", line 1120, in call return self.run_single(inputs, preprocess_params, forward_params, postprocess_params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\venv\Lib\site-packages\transformers\pipelines\base.py", line 1127, in run_single model_outputs = self.forward(model_inputs, forward_params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\venv\Lib\site-packages\transformers\pipelines\base.py", line 1026, in forward model_outputs = self._forward(model_inputs, forward_params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\venv\Lib\site-packages\transformers\pipelines\text_generation.py", line 263, in _forward generated_sequence = self.model.generate(input_ids=input_ids, attention_mask=attention_mask, generate_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\venv\Lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\venv\Lib\site-packages\transformers\generation\utils.py", line 1271, in generate self._validate_model_kwargs(model_kwargs.copy()) File "D:\ComfyUI\venv\Lib\site-packages\transformers\generation\utils.py", line 1144, in _validate_model_kwargs raise ValueError( To Reproduce** Steps to reproduce the behavior:
Screenshots If applicable, add screenshots to help explain your problem.
Operating System
Python Version Add the python version you are using