đ RegNet
RegNet is a model trained on ImageNet-1K. It addresses the challenge of neural architecture design by introducing a novel approach to designing network design spaces, offering a more efficient way for image classification tasks.
đ Quick Start
The RegNet model is trained on ImageNet-1K. It was introduced in the paper Designing Network Design Spaces and first released in this repository.
Disclaimer: The team releasing RegNet did not write a model card for this model so this model card has been written by the Hugging Face team.
⨠Features
- Neural Architecture Search (NAS): The authors design search spaces to perform NAS. They start from a high - dimensional search space and iteratively reduce it by empirically applying constraints based on the best - performing models sampled by the current search space.
- Image Classification: Can be used for raw image classification tasks.
đĻ Installation
No specific installation steps are provided in the original document, so this section is skipped.
đģ Usage Examples
Basic Usage
>>> from transformers import AutoFeatureExtractor, RegNetForImageClassification
>>> import torch
>>> from datasets import load_dataset
>>> dataset = load_dataset("huggingface/cats-image")
>>> image = dataset["test"]["image"][0]
>>> feature_extractor = AutoFeatureExtractor.from_pretrained("facebook/regnet-x-040")
>>> model = RegNetForImageClassification.from_pretrained("facebook/regnet-x-040")
>>> inputs = feature_extractor(image, return_tensors="pt")
>>> with torch.no_grad():
... logits = model(**inputs).logits
>>>
>>> predicted_label = logits.argmax(-1).item()
>>> print(model.config.id2label[predicted_label])
'tabby, tabby cat'
Advanced Usage
For more code examples, we refer to the documentation.
đ Documentation
Model description
The authors design search spaces to perform Neural Architecture Search (NAS). They first start from a high dimensional search space and iteratively reduce the search space by empirically applying constraints based on the best - performing models sampled by the current search space.

Intended uses & limitations
You can use the raw model for image classification. See the model hub to look for fine - tuned versions on a task that interests you.
đ§ Technical Details
No specific technical details beyond the model description are provided in the original document, so this section is skipped.
đ License
The model is licensed under the Apache 2.0 license.
Property |
Details |
Model Type |
RegNet for image classification |
Training Data |
ImageNet - 1K |