Upload README.md
Browse files
README.md
CHANGED
@@ -2,33 +2,32 @@
|
|
2 |
license: apache-2.0
|
3 |
tags:
|
4 |
- vision
|
5 |
-
- image-
|
6 |
|
7 |
datasets:
|
8 |
-
- imagenet-21k
|
9 |
- imagenet-1k
|
10 |
|
11 |
widget:
|
12 |
-
- src:https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
13 |
-
|
14 |
|
15 |
---
|
16 |
|
17 |
-
#
|
18 |
|
19 |
-
|
20 |
|
21 |
-
Disclaimer: The team releasing
|
22 |
|
23 |
## Model description
|
24 |
|
25 |
-
|
26 |
|
27 |
-

|
44 |
>>> image = dataset["test"]["image"][0]
|
45 |
|
46 |
-
>>> feature_extractor =
|
47 |
-
>>> model =
|
48 |
|
49 |
>>> inputs = feature_extractor(image, return_tensors="pt")
|
50 |
|
@@ -59,4 +58,4 @@ Here is how to use this model:
|
|
59 |
|
60 |
|
61 |
|
62 |
-
For more code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/master/en/model_doc/
|
|
|
2 |
license: apache-2.0
|
3 |
tags:
|
4 |
- vision
|
5 |
+
- image-classification
|
6 |
|
7 |
datasets:
|
|
|
8 |
- imagenet-1k
|
9 |
|
10 |
widget:
|
11 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
12 |
+
example_title: Tiger
|
13 |
|
14 |
---
|
15 |
|
16 |
+
# RegNet
|
17 |
|
18 |
+
RegNet model trained on imagenet-1k. It was introduced in the paper [Designing Network Design Spaces](https://arxiv.org/abs/2003.13678) and first released in [this repository](https://github.com/facebookresearch/pycl).
|
19 |
|
20 |
+
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.
|
21 |
|
22 |
## Model description
|
23 |
|
24 |
+
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.
|
25 |
|
26 |
+

|
27 |
|
28 |
## Intended uses & limitations
|
29 |
|
30 |
+
You can use the raw model for image classification. See the [model hub](https://huggingface.co/models?search=regnet) to look for
|
31 |
fine-tuned versions on a task that interests you.
|
32 |
|
33 |
### How to use
|
|
|
35 |
Here is how to use this model:
|
36 |
|
37 |
```python
|
38 |
+
>>> from transformers import AutoFeatureExtractor, RegNetForImageClassification
|
39 |
>>> import torch
|
40 |
>>> from datasets import load_dataset
|
41 |
|
42 |
>>> dataset = load_dataset("huggingface/cats-image")
|
43 |
>>> image = dataset["test"]["image"][0]
|
44 |
|
45 |
+
>>> feature_extractor = AutoFeatureExtractor.from_pretrained("")
|
46 |
+
>>> model = RegNetForImageClassification.from_pretrained("")
|
47 |
|
48 |
>>> inputs = feature_extractor(image, return_tensors="pt")
|
49 |
|
|
|
58 |
|
59 |
|
60 |
|
61 |
+
For more code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/master/en/model_doc/regnet).
|