Fix processor class
#8
by
						
RaushanTurganbay
	
							HF Staff
						- opened
							
					
- configuration_dots.py +1 -0
    	
        configuration_dots.py
    CHANGED
    
    | @@ -67,6 +67,7 @@ class DotsOCRConfig(Qwen2Config): | |
| 67 |  | 
| 68 |  | 
| 69 | 
             
            class DotsVLProcessor(Qwen2_5_VLProcessor):
         | 
|  | |
| 70 | 
             
                def __init__(self, image_processor=None, tokenizer=None, chat_template=None, **kwargs):
         | 
| 71 | 
             
                    super().__init__(image_processor, tokenizer, chat_template=chat_template)
         | 
| 72 | 
             
                    self.image_token = "<|imgpad|>" if not hasattr(tokenizer, "image_token") else tokenizer.image_token
         | 
|  | |
| 67 |  | 
| 68 |  | 
| 69 | 
             
            class DotsVLProcessor(Qwen2_5_VLProcessor):
         | 
| 70 | 
            +
                attributes = ["image_processor", "tokenizer"] # override and remove 'video_processor'
         | 
| 71 | 
             
                def __init__(self, image_processor=None, tokenizer=None, chat_template=None, **kwargs):
         | 
| 72 | 
             
                    super().__init__(image_processor, tokenizer, chat_template=chat_template)
         | 
| 73 | 
             
                    self.image_token = "<|imgpad|>" if not hasattr(tokenizer, "image_token") else tokenizer.image_token
         | 
