[Model] Update Kimi-K25 and Isaac processors to fit HF-style (#37693)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
@@ -334,15 +334,14 @@ class IsaacProcessingInfo(BaseProcessingInfo):
|
||||
return IsaacConfig()
|
||||
|
||||
def get_image_processor(self, **kwargs) -> IsaacImageProcessor:
|
||||
return IsaacImageProcessor(kwargs)
|
||||
return IsaacImageProcessor(**kwargs)
|
||||
|
||||
def get_hf_processor(self, **kwargs) -> IsaacProcessor:
|
||||
hf_config = self.get_hf_config()
|
||||
|
||||
return self.ctx.init_processor(
|
||||
IsaacProcessor,
|
||||
return IsaacProcessor(
|
||||
tokenizer=self.get_tokenizer(),
|
||||
image_processor=self.get_image_processor(),
|
||||
image_processor=self.get_image_processor(**kwargs),
|
||||
image_token=hf_config.vision_token,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user