827648313
827648313
> 不明确为什么要使用循环。CLI推理代码可以实现多轮对话。 [En] Why use for-loop to inference? We can complete multi-round conversation with CLI demo. https://github.com/PKU-YuanGroup/Video-LLaVA?tab=readme-ov-file#cli-inference 因为暂时只想实现单轮对话 哈哈
> > 我认为,如果在 Python 脚本中毫无问题地调用模型以执行下游任务,那将是有益的。 > > 编辑:我刚刚解决了这个问题。您需要`conv_templates`在每个循环中重新初始化该对象,因为`conv`保留了所有对话历史记录,因此如果您只是将下一个问题附加到它,问题将在每个循环中累积,这会以某种方式导致模型出现问题。 > > 确切地说,只需在每个 for 循环中使用新的转换模板即可。 是的
> I think it would be beneficial if one can call the model without problem in a Python script in order to perform downstream tasks. > > Edit: I just...