Skip to content

Commit 07ef6bf

Browse files
0russwest0Jintao-Huang
authored andcommitted
[bugfix] update query placeholder in TextCapsEmbPreprocessor to '<image>' (#5774)
1 parent 72bb862 commit 07ef6bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/llm/dataset/dataset/mllm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ def preprocess(self, row: Dict[str, Any]) -> Optional[Dict[str, Any]]:
761761
class TextCapsEmbPreprocessor(ResponsePreprocessor):
762762

763763
def preprocess(self, row: Dict[str, Any]) -> Optional[Dict[str, Any]]:
764-
row['query'] = ''
764+
row['query'] = '<image>'
765765
if not os.path.exists(row['images']['path']):
766766
return None
767767
return super().preprocess(row)

0 commit comments

Comments
 (0)