You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c277959
Browse filesBrowse the repository at this point in the historyBrowse files
[Janus] Fix processor iterating a string prompt character by character (#50044)
* Fix JanusProcessor iterating a str text input character by character
Normalize a single string to a one-element list before adding the default
system prompt or the image-generation suffix, and add a regression test.
* Remove Janus processor test per review
* Show full assertion diffs in Janus integration tests
* Refresh Janus text expectations for synthetic images
EXPECTED_DECODED_TEXT='You are a helpful language and vision assistant. You are able to understand the visual content that the user provides, and assist the user with a variety of tasks using natural language.\n\n\nDescribe what do you see here and tell me about the history behind it?\n\nThe image depicts the constellation of Leo, which is part of the zodiac and the constellation'# fmt: skip
438
+
EXPECTED_DECODED_TEXT='You are a helpful language and vision assistant. You are able to understand the visual content that the user provides, and assist the user with a variety of tasks using natural language.\n\n\nDescribe what do you see here and tell me about the history behind it?\n\nThis image shows a night sky filled with stars, and there are silhouettes of trees at'# fmt: skip
EXPECTED_TEXT_COMPLETION= ["You are a helpful language and vision assistant. You are able to understand the visual content that the user provides, and assist the user with a variety of tasks using natural language.\n\nWhat do these two images and have in common?\n\nThe two images you provided are of the same star constellation. The first image shows the constellation of Leo, and the second image shows the constellation of Ursa Major. Both constellations are part"] # fmt: skip
509
+
EXPECTED_TEXT_COMPLETION= ["You are a helpful language and vision assistant. You are able to understand the visual content that the user provides, and assist the user with a variety of tasks using natural language.\n\nWhat do these two images and have in common?\n\nThe image you provided shows a night sky with stars and a constellation, while the second image shows a night sky with stars and a different constellation. Both images feature stars and a dark sky,"] # fmt: skip
0 commit comments