LLaVA-VL / LLaVA-NeXT

Apache License 2.0
2.52k stars 186 forks source link

ValueError: Unable to create tensor, you should probably activate padding with 'padding=True' to have batched tensors with the same length. #76

Open XHB-ZMM opened 3 months ago

XHB-ZMM commented 3 months ago

code:video = image_processor.preprocess(video, return_tensors="pt")["pixel_values"].half().cuda()

Nyandwi commented 2 weeks ago

Hi there! In case you still have this issue or someone else faces it, it is packages issue. In my case, I modified a few things before installation steps which created unnecessary mismatches that are hard to figure out. What worked for me is re-doing the installation without any modification.