Set images=None, videos=None to avoid image processor error

parent 252525b0
Pipeline #209 canceled with stages
......@@ -107,8 +107,8 @@ def main():
# Preparation for inference
text = processor.apply_chat_template(conversation, add_generation_prompt=True, tokenize=False)
audios = [audio_chunk]
images = []
videos = []
images = None
videos = None
inputs = processor(text=text, audio=audios, images=images, videos=videos, return_tensors="pt", padding=True, use_audio_in_video=False)
inputs = inputs.to(model.device).to(model.dtype)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment