Make image processors more general (#27690)

* Make image processors more general

* Add backwards compatibility for KOSMOS-2

* Remove use_square_size everywhere

* Remove script
This commit is contained in:
NielsRogge
2023-12-05 10:45:39 +01:00
committed by GitHub
parent 96f9caa10b
commit df40edfb00
7 changed files with 83 additions and 79 deletions

View File

@@ -55,7 +55,7 @@ class Kosmos2ProcessorTest(unittest.TestCase):
def setUp(self):
self.tmpdirname = tempfile.mkdtemp()
image_processor = CLIPImageProcessor(use_square_size=True)
image_processor = CLIPImageProcessor()
# We have a SentencePiece fixture for testing
slow_tokenizer = XLMRobertaTokenizer(SAMPLE_VOCAB)