Instructions to use zeroone012012/detr_custom with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zeroone012012/detr_custom with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zeroone012012/detr_custom", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from zeroone012012/detr_custom: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/zeroone012012/detr_custom/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://zeroone012012/detr_custom/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/zeroone012012/detr_custom/resolve/main/preprocessor_config.json
437 Bytes
| { | |
| "type": "detr_image", | |
| "max_size": 800, | |
| "min_size": 400, | |
| "num_channels": 3, | |
| "mean": [0.485, 0.456, 0.406], | |
| "std": [0.229, 0.224, 0.225], | |
| "scale_h": 384, | |
| "scale_w": 600, | |
| "augmentation": { | |
| "type": "augmentation", | |
| "flip_prob": 0.5, | |
| "translate": [0.1, 0.1], | |
| "scale": [0.9, 1.1], | |
| "rotate": [-30, 30], | |
| "hue": 0.1, | |
| "saturation": 0.1, | |
| "value": 0.1 | |
| } | |
| } | |