Instructions to use nvidia/E-RADIO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nvidia/E-RADIO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="nvidia/E-RADIO", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nvidia/E-RADIO", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from nvidia/E-RADIO: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/nvidia/E-RADIO/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://nvidia/E-RADIO/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/nvidia/E-RADIO/resolve/main/preprocessor_config.json
331 Bytes
| { | |
| "crop_size": { | |
| "height": 512, | |
| "width": 512 | |
| }, | |
| "do_center_crop": false, | |
| "do_convert_rgb": true, | |
| "do_normalize": false, | |
| "do_rescale": true, | |
| "do_resize": false, | |
| "image_processor_type": "CLIPImageProcessor", | |
| "processor_class": "CLIPProcessor", | |
| "resample": 3, | |
| "size": { | |
| "shortest_edge": 512 | |
| } | |
| } |