Instructions to use nielsr/vitmatte-small-composition-1k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nielsr/vitmatte-small-composition-1k with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, VitMatteForImageMatting processor = AutoImageProcessor.from_pretrained("nielsr/vitmatte-small-composition-1k") model = VitMatteForImageMatting.from_pretrained("nielsr/vitmatte-small-composition-1k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Adding `safetensors` variant of this model
#1 opened about 1 year ago
by
SFconvertbot