LLaVA-NeXT icon indicating copy to clipboard operation
LLaVA-NeXT copied to clipboard

TypeError: ne() received an invalid combination of arguments - got (NoneType)

Open QimingLi-scir opened this issue 1 year ago • 2 comments

when i run bash , error occurs

bash scripts/video/demo/video_demo.sh /data/checkpoints/llama3-llava-next-8b vicuna_v1 32 2 average after no_token True /mnt/data/user/tc_agi/qmli/LLaVA-NeXT-inference/LLaVA-NeXT-inference/playground/demo/xU25MMA2N4aVtYay.mp4

Traceback (most recent call last): File "/mnt/data/user/tc_agi/qmli/LLaVA-NeXT-inference/LLaVA-NeXT-inference/playground/demo/video_demo.py", line 316, in run_inference(args) File "/mnt/data/user/tc_agi/qmli/LLaVA-NeXT-inference/LLaVA-NeXT-inference/playground/demo/video_demo.py", line 209, in run_inference attention_masks = input_ids.ne(tokenizer.pad_token_id).long().cuda() TypeError: ne() received an invalid combination of arguments - got (NoneType), but expected one of:

  • (Tensor other) didn't match because some of the arguments have invalid types: (NoneType)
  • (Number other) didn't match because some of the arguments have invalid types: (NoneType)

how can i solve this problem?

QimingLi-scir avatar Aug 02 '24 05:08 QimingLi-scir