Update processing_phi3_v.py to fix `TypeError: Phi3VProcessor.__init__() got an unexpected keyword argument 'chat_template'`
Browse files- processing_phi3_v.py +1 -1
processing_phi3_v.py
CHANGED
|
@@ -310,7 +310,7 @@ class Phi3VProcessor(ProcessorMixin):
|
|
| 310 |
tokenizer_class = ("LlamaTokenizer", "LlamaTokenizerFast")
|
| 311 |
special_image_token = "<|image|>"
|
| 312 |
|
| 313 |
-
def __init__(self, image_processor, tokenizer):
|
| 314 |
self.image_processor = image_processor
|
| 315 |
self.tokenizer = tokenizer
|
| 316 |
self.num_img_tokens = image_processor.num_img_tokens
|
|
|
|
| 310 |
tokenizer_class = ("LlamaTokenizer", "LlamaTokenizerFast")
|
| 311 |
special_image_token = "<|image|>"
|
| 312 |
|
| 313 |
+
def __init__(self, image_processor, tokenizer, **kwargs):
|
| 314 |
self.image_processor = image_processor
|
| 315 |
self.tokenizer = tokenizer
|
| 316 |
self.num_img_tokens = image_processor.num_img_tokens
|