<!-- # hard line break macro for HTML -->

<a id="model-zoo-resnet50-imagenet-torch"></a>

# resnet50-imagenet-torch

Most popular image recognition backbone widely used as starting point for custom vision projects.

**Details**

- Model name: `resnet50-imagenet-torch`
- Model source: [https://pytorch.org/vision/main/models.html](https://pytorch.org/vision/main/models.html)
- Model author: Kaiming He, et al.
- Model license: BSD 3-Clause
- Model size: 97.75 MB
- Exposes embeddings? yes
- Tags: `classification, embeddings, logits, imagenet, torch, resnet, official`

**Requirements**

- Packages: `torch, torchvision`
- CPU support
  - yes
- GPU support
  - yes

**Example usage**

```python
import fiftyone as fo
import fiftyone.zoo as foz

dataset = foz.load_zoo_dataset(
    "imagenet-sample",
    dataset_name=fo.get_default_dataset_name(),
    max_samples=50,
    shuffle=True,
)

model = foz.load_zoo_model("resnet50-imagenet-torch")

dataset.apply_model(model, label_field="predictions")

session = fo.launch_app(dataset)
```
