Files
aigc-apps-VideoX-Fun/videox_fun/video_caption/utils/longclip
Bubbliiiingandhuangkunzhe.hkz e1e7145c87 Update Wan and Wan-Fun (#125)
Update Wan and Wan-Fun

---------

Co-authored-by: huangkunzhe.hkz <huangkunzhe.hkz@alibaba-inc.com>
2025-03-26 17:49:51 +08:00
..
2025-03-26 17:49:51 +08:00
2025-03-26 17:49:51 +08:00
2025-03-26 17:49:51 +08:00

Long-CLIP

Codes in this directory are borrowed from https://github.com/beichenzbc/Long-CLIP/tree/4e6f5da/model.

We only modify the following code in model_longclip.py from

@property
def dtype(self):
    return self.visual.conv1.weight.dtype

to

@property
def dtype(self):
    # Fix: the VideoCLIP-XL inference.
    if hasattr(self, "visual"):
        return self.visual.conv1.weight.dtype
    else:
        return self.token_embedding.weight.dtype