magic-animate icon indicating copy to clipboard operation
magic-animate copied to clipboard

After launching, failed to run demo

Open vvip2u opened this issue 1 year ago • 6 comments

image

logs

  File "E:\apps\magic-animate\demo\animate.py", line 157, in __call__
    sample = self.pipeline(
  File "D:\ProgramData\anaconda3\envs\magic-animate-py\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "E:\apps\magic-animate\magicanimate\pipelines\pipeline_animation.py", line 592, in __call__
    text_embeddings = self._encode_prompt(
  File "E:\apps\magic-animate\magicanimate\pipelines\pipeline_animation.py", line 187, in _encode_prompt
    text_inputs = self.tokenizer(
  File "D:\ProgramData\anaconda3\envs\magic-animate-py\lib\site-packages\transformers\tokenization_utils_base.py", line 2602, in __call__
    encodings = self._call_one(text=text, text_pair=text_pair, **all_kwargs)
  File "D:\ProgramData\anaconda3\envs\magic-animate-py\lib\site-packages\transformers\tokenization_utils_base.py", line 2688, in _call_one
    return self.batch_encode_plus(
  File "D:\ProgramData\anaconda3\envs\magic-animate-py\lib\site-packages\transformers\tokenization_utils_base.py", line 2879, in batch_encode_plus
    return self._batch_encode_plus(
  File "D:\ProgramData\anaconda3\envs\magic-animate-py\lib\site-packages\transformers\tokenization_utils.py", line 744, in _batch_encode_plus
    batch_outputs = self._batch_prepare_for_model(
  File "D:\ProgramData\anaconda3\envs\magic-animate-py\lib\site-packages\transformers\tokenization_utils.py", line 816, in _batch_prepare_for_model
    batch_outputs = self.pad(
  File "D:\ProgramData\anaconda3\envs\magic-animate-py\lib\site-packages\transformers\tokenization_utils_base.py", line 3086, in pad
    outputs = self._pad(
  File "D:\ProgramData\anaconda3\envs\magic-animate-py\lib\site-packages\transformers\tokenization_utils_base.py", line 3450, in _pad
    encoded_inputs["attention_mask"] = encoded_inputs["attention_mask"] + [0] * difference
OverflowError: cannot fit 'int' into an index-sized integer

vvip2u avatar Dec 12 '23 03:12 vvip2u

same question

zsszyx avatar Dec 31 '23 10:12 zsszyx

+1

Hubert2102 avatar Jan 03 '24 07:01 Hubert2102

Same issue

leoullas avatar Jan 05 '24 18:01 leoullas

image

leoullas avatar Jan 05 '24 18:01 leoullas

I have exact same error with OMG repo. Any solution? I have latest version of transformers

barraland avatar Mar 25 '24 18:03 barraland

what's python version?

johndpope avatar Mar 25 '24 22:03 johndpope