[Models] Kimi-K2.5 (#33131)
Signed-off-by: wanglinian <wanglinian@stu.pku.edu.cn> Signed-off-by: wangln19 <96399074+wangln19@users.noreply.github.com> Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn> Signed-off-by: youkaichao <youkaichao@gmail.com> Signed-off-by: Roger Wang <hey@rogerw.io> Co-authored-by: wanglinian <wanglinian@stu.pku.edu.cn> Co-authored-by: wangln19 <96399074+wangln19@users.noreply.github.com> Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> Co-authored-by: Isotr0py <mozf@mail2.sysu.edu.cn> Co-authored-by: Nick Hill <nickhill123@gmail.com> Co-authored-by: youkaichao <youkaichao@gmail.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
wanglinian
wangln19
Zaida Zhou
Isotr0py
Nick Hill
youkaichao
gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent
6c00645712
commit
b539f988e1
@@ -235,6 +235,27 @@ class VideoLoader:
|
||||
VIDEO_LOADER_REGISTRY = ExtensionManager()
|
||||
|
||||
|
||||
@VIDEO_LOADER_REGISTRY.register("identity")
|
||||
class IdentityVideoLoader(VideoLoader):
|
||||
"""IdentityVideoLoader returns raw video bytes without decoding.
|
||||
|
||||
This allows the model processor to handle video decoding and
|
||||
is required for models like Kimi-K2.5 that need custom video chunk splitting.
|
||||
|
||||
NOTE: This is temporary for Kimi-K2.5 testing. Remember to change back
|
||||
to opencv before release if needed.
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
def load_bytes(
|
||||
cls,
|
||||
data: bytes,
|
||||
num_frames: int = -1,
|
||||
**kwargs: Any,
|
||||
) -> tuple[Any, Any]:
|
||||
return data, None
|
||||
|
||||
|
||||
@VIDEO_LOADER_REGISTRY.register("opencv")
|
||||
class OpenCVVideoBackend(VideoLoader):
|
||||
def get_cv2_video_api(self):
|
||||
|
||||
Reference in New Issue
Block a user