Janus Pro-7B在带有图片的few-shot中会导致输出乱码
prompt: [{ 'role': '<|User|>', 'content': '<image_placeholder>\n\nquestion1', 'images': ['./img1.jpeg'] }, { 'role': '<|Assistant|>', 'content': 'answer1' }, { 'role': '<|User|>', 'content': '<image_placeholder>\n\nquestion2', 'images': ['./img1.jpeg'] }, { 'role': '<|Assistant|>', 'content': 'answer2' }, ... 8-shot { 'role': '<|User|>', 'content': '<image_placeholder>\n\nquestion9', 'images': ['./img3.jpeg'] }, { 'role': '<|Assistant|>', 'content': '' }]
output:[INFO] Answer: �s as.ine or. ,1:// ��, per: .__ ��.mons��,� �� . �. in.��sss.�,�,s.:.�ney and- ,.t way ...., is,! in, and and�, of.2.� and. or is, ��, is ons of, at,�.� in, of, and and to to or.� and and. , with,, from/ in:: is is�����.�. rs by, and of or�. isр-comate. in.0 (���...
. in or� of ( of by or in or� or of of the� on with, on. and in in. and ������.pre��ble,���� is.� e empty, in and and, and or�.�, will(� or or.�� as��� will by� by: and��,NBA of��. t is by and��� and or or from and to of on the:s to� and To-� . or. or will� byre is: it, it�.�:����� � or is� could by and� or by�.����� and�-��. or would,�. with�����. that using to�������� �� or. For:��� or by for�, or�,�,�������� from in����� by is,� �,1ц����,��.��,��� �. ������ or or is.������ or here (�, to to is,���� . is in -ber,��� will,��, is����.�.� c can.2 .-,2�� in�,� to,���.�.’�,�() �, ��.�� ofs�� by,��, from�. will, on�
在测试中不带图片的few-shot可以正常输出结果,但shot中含有图片时就会输出乱码,是使用方式的问题么?
Source: deepseek-ai/Janus