Instructions to use hustvl/vitmatte-base-composition-1k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hustvl/vitmatte-base-composition-1k with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, VitMatteForImageMatting processor = AutoImageProcessor.from_pretrained("hustvl/vitmatte-base-composition-1k") model = VitMatteForImageMatting.from_pretrained("hustvl/vitmatte-base-composition-1k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 284 Bytes
a05734d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | {
"do_normalize": true,
"do_pad": true,
"do_rescale": true,
"image_mean": [
0.5,
0.5,
0.5
],
"image_processor_type": "VitMatteImageProcessor",
"image_std": [
0.5,
0.5,
0.5
],
"rescale_factor": 0.00392156862745098,
"size_divisibility": 32
}
|