AutoDL上运行Image Captioning 任务,beam search报错,nucleus sampling可以运行 #284
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#284
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
在AutoDL上运行10月23日的课程实验时,运行Image Captioning 任务,如果用beam search,遇到以下错误。
如果用nucleus sampling,就可以得出正常结果。不知道为什么。
解决方案:https://github.com/salesforce/BLIP/issues/165


原因是不要将输入的第0维复制beam_size次
多谢,按照你的链接里的建议(注释 blip.py 文件的 131、132 两行)修改后,这个问题可以解决。