Download vision_resampler.py from DeepGlint-AI/MLCD-Seg: direct link, hf CLI and curl.
- Browser
- Download file 374 Bytes
-
https://huggingface.co/DeepGlint-AI/MLCD-Seg/resolve/main/vision_resampler.py
- Command line
-
hf download hf://DeepGlint-AI/MLCD-Seg/vision_resampler.py
-
curl -L -o vision_resampler.py https://huggingface.co/DeepGlint-AI/MLCD-Seg/resolve/main/vision_resampler.py
374 Bytes
| ''' | |
| CopyRight @DeepGlint 2025 | |
| ''' | |
| import torch | |
| def build_vision_resampler(model_args, delay_load=False, **kwargs): | |
| return IdentityMap() | |
| class IdentityMap(torch.nn.Module): | |
| def __init__(self): | |
| super().__init__() | |
| def forward(self, x, *args, **kwargs): | |
| return x | |
| def config(self): | |
| return {"mm_resampler_type": None} |