LLaVA-VL / LLaVA-NeXT

Apache License 2.0
2.39k stars 166 forks source link

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

Open QimingLi-scir opened 1 month ago

QimingLi-scir commented 1 month ago

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:

how can i solve this problem?

LetsGoFir commented 2 weeks ago

same problem