Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Janus Pro-7B在带有图片的few-shot中会导致输出乱码 #123

Open
hm1229 opened this issue Feb 2, 2025 · 0 comments
Open

Janus Pro-7B在带有图片的few-shot中会导致输出乱码 #123

hm1229 opened this issue Feb 2, 2025 · 0 comments

Comments

@hm1229
Copy link

hm1229 commented Feb 2, 2025

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中含有图片时就会输出乱码,是使用方式的问题么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant