Closed Woolverine94 closed 11 months ago
starting module Token indices sequence length is longer than the specified maximum sequence length for this model (694 > 77). Running this sequence through the model will result in indexing errors The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens:
Votre prompt est beaucoup trop long. Essayez avec le prompt "a cute puppy" et confirmez le comportement.
J'ai baladé ce long prompt (avec l'option send de l'interface biniou) un peu partout : stable diffusion, lcm, md-mini, pixart-alpha sans aucun problemes. Le prompt "a cute puppy" envoie une erreur aussi :
>>>[Kandinsky 🖼️ ]: starting module You are using a model of type xlm-roberta to instantiate a model of type M-CLIP. This is not supported for all configurations of models and can yield errors. Traceback (most recent call last): File "/home/biniou/dreamproject/biniou/env/lib/python3.11/site-packages/gradio/queueing.py", line 407, in call_prediction output = await route_utils.call_process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/biniou/dreamproject/biniou/env/lib/python3.11/site-packages/gradio/route_utils.py", line 226, in call_process_api output = await app.get_blocks().process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/biniou/dreamproject/biniou/env/lib/python3.11/site-packages/gradio/blocks.py", line 1550, in process_api result = await self.call_function( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/biniou/dreamproject/biniou/env/lib/python3.11/site-packages/gradio/blocks.py", line 1185, in call_function prediction = await anyio.to_thread.run_sync( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/biniou/dreamproject/biniou/env/lib/python3.11/site-packages/anyio/to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/biniou/dreamproject/biniou/env/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread return await future ^^^^^^^^^^^^ File "/home/biniou/dreamproject/biniou/env/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, *args) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/biniou/dreamproject/biniou/env/lib/python3.11/site-packages/gradio/utils.py", line 661, in wrapper response = f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/home/biniou/dreamproject/biniou/env/lib/python3.11/site-packages/gradio/utils.py", line 661, in wrapper response = f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/home/biniou/dreamproject/biniou/ressources/common.py", line 327, in wrap_func result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/home/biniou/dreamproject/biniou/ressources/txt2img_kd.py", line 144, in image_txt2img_kd image = pipe_txt2img_kd( ^^^^^^^^^^^^^^^^ File "/home/biniou/dreamproject/biniou/env/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ TypeError: KandinskyCombinedPipeline.__call__() got an unexpected keyword argument 'callback_on_step_end'
Voila votre erreur, qui ne figurait pas dans le log précédent :
KandinskyCombinedPipeline.call() got an unexpected keyword argument 'callback_on_step_end'
Je regarde cela.
Le commit 6434292 devrait régler ce problème.
Je ferme le ticket, n'hésitez pas à le rouvrir si besoin est.
Discussed in https://github.com/Woolverine94/biniou/discussions/8