Instructions to use OpenGVLab/VideoChat-TPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenGVLab/VideoChat-TPO with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OpenGVLab/VideoChat-TPO", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download third_party/sam2/__init__.py from OpenGVLab/VideoChat-TPO: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/OpenGVLab/VideoChat-TPO/resolve/main/third_party/sam2/__init__.py
- Command line
-
hf download hf://OpenGVLab/VideoChat-TPO/third_party/sam2/__init__.py
-
curl -L -o __init__.py https://huggingface.co/OpenGVLab/VideoChat-TPO/resolve/main/third_party/sam2/__init__.py
403 Bytes
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |
| # All rights reserved. | |
| # This source code is licensed under the license found in the | |
| # LICENSE file in the root directory of this source tree. | |
| from hydra import initialize_config_module | |
| from hydra.core.global_hydra import GlobalHydra | |
| if not GlobalHydra.instance().is_initialized(): | |
| initialize_config_module("sam2_configs", version_base="1.2") | |