Update expect outputs of IdeficsProcessorTest.test_tokenizer_padding (#26779)
fix Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -148,10 +148,9 @@ class IdeficsProcessorTest(TestCasePlus):
|
|||||||
processor = IdeficsProcessor(tokenizer=tokenizer, image_processor=image_processor)
|
processor = IdeficsProcessor(tokenizer=tokenizer, image_processor=image_processor)
|
||||||
|
|
||||||
predicted_tokens = [
|
predicted_tokens = [
|
||||||
"<s>Describe this image.\nAssistant:<unk><unk><unk><unk><unk><unk><unk><unk><unk>",
|
"<s> Describe this image.\nAssistant:<unk><unk><unk><unk><unk><unk><unk><unk><unk>",
|
||||||
"<s>Describe this image.\nAssistant:<unk><unk><unk><unk><unk><unk><unk><unk><unk><unk>",
|
"<s> Describe this image.\nAssistant:<unk><unk><unk><unk><unk><unk><unk><unk><unk><unk>",
|
||||||
]
|
]
|
||||||
|
|
||||||
prompts = [[prompt] for prompt in self.prepare_prompts()[2]]
|
prompts = [[prompt] for prompt in self.prepare_prompts()[2]]
|
||||||
max_length = processor(prompts, padding="max_length", truncation=True, max_length=20)
|
max_length = processor(prompts, padding="max_length", truncation=True, max_length=20)
|
||||||
longest = processor(prompts, padding="longest", truncation=True, max_length=30)
|
longest = processor(prompts, padding="longest", truncation=True, max_length=30)
|
||||||
|
|||||||
Reference in New Issue
Block a user