microsoft / resnet-18

huggingface.co
Total runs: 535.6K
24-hour runs: 0
7-day runs: -4.8K
30-day runs: 307.0K
Model's Last Updated: April 08 2024
image-classification

Introduction of resnet-18

Model Details of resnet-18

ResNet

ResNet model trained on imagenet-1k. It was introduced in the paper Deep Residual Learning for Image Recognition and first released in this repository .

Disclaimer: The team releasing ResNet did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description

ResNet introduced residual connections, they allow to train networks with an unseen number of layers (up to 1000). ResNet won the 2015 ILSVRC & COCO competition, one important milestone in deep computer vision.

model image

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.

How to use

Here is how to use this model:

>>> from transformers import AutoImageProcessor, AutoModelForImageClassification
>>> import torch
>>> from datasets import load_dataset

>>> dataset = load_dataset("huggingface/cats-image")
>>> image = dataset["test"]["image"][0]

>>> image_processor = AutoImageProcessor.from_pretrained("microsoft/resnet-18")
>>> model = AutoModelForImageClassification.from_pretrained("microsoft/resnet-18")

>>> inputs = image_processor(image, return_tensors="pt")

>>> with torch.no_grad():
...     logits = model(**inputs).logits

>>> # model predicts one of the 1000 ImageNet classes
>>> predicted_label = logits.argmax(-1).item()
>>> print(model.config.id2label[predicted_label])
tiger cat

For more code examples, we refer to the documentation .

Runs of microsoft resnet-18 on huggingface.co

535.6K
Total runs
0
24-hour runs
-1.8K
3-day runs
-4.8K
7-day runs
307.0K
30-day runs

More Information About resnet-18 huggingface.co Model

More resnet-18 license Visit here:

https://choosealicense.com/licenses/apache-2.0

resnet-18 huggingface.co

resnet-18 huggingface.co is an AI model on huggingface.co that provides resnet-18's model effect (), which can be used instantly with this microsoft resnet-18 model. huggingface.co supports a free trial of the resnet-18 model, and also provides paid use of the resnet-18. Support call resnet-18 model through api, including Node.js, Python, http.

microsoft resnet-18 online free

resnet-18 huggingface.co is an online trial and call api platform, which integrates resnet-18's modeling effects, including api services, and provides a free online trial of resnet-18, you can try resnet-18 online for free by clicking the link below.

microsoft resnet-18 online free url in huggingface.co:

https://huggingface.co/microsoft/resnet-18

resnet-18 install

resnet-18 is an open source model from GitHub that offers a free installation service, and any user can find resnet-18 on GitHub to install. At the same time, huggingface.co provides the effect of resnet-18 install, users can directly use resnet-18 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

resnet-18 install url in huggingface.co:

https://huggingface.co/microsoft/resnet-18

Url of resnet-18

Provider of resnet-18 huggingface.co

microsoft
ORGANIZATIONS

Other API from microsoft

huggingface.co

Total runs: 681.1K
Run Growth: 208.0K
Growth Rate: 30.53%
Updated:February 03 2022
huggingface.co

Total runs: 595.8K
Run Growth: -131.1K
Growth Rate: -22.00%
Updated:November 25 2025
huggingface.co

Total runs: 511.8K
Run Growth: -531.5K
Growth Rate: -103.84%
Updated:December 08 2025
huggingface.co

Total runs: 468.5K
Run Growth: -38.4K
Growth Rate: -8.20%
Updated:September 26 2022
huggingface.co

Total runs: 289.1K
Run Growth: -22.3K
Growth Rate: -7.70%
Updated:February 14 2024
huggingface.co

Total runs: 117.8K
Run Growth: -147.4K
Growth Rate: -125.12%
Updated:November 08 2023
huggingface.co

Total runs: 117.6K
Run Growth: -1.2K
Growth Rate: -1.03%
Updated:February 29 2024
huggingface.co

Total runs: 100.0K
Run Growth: -425
Growth Rate: -0.42%
Updated:August 28 2025
huggingface.co

Total runs: 97.7K
Run Growth: -14.6K
Growth Rate: -14.91%
Updated:February 03 2023
huggingface.co

Total runs: 69.7K
Run Growth: -13.1K
Growth Rate: -18.74%
Updated:November 25 2025
huggingface.co

Total runs: 68.7K
Run Growth: -18.2K
Growth Rate: -26.47%
Updated:December 03 2025
huggingface.co

Total runs: 52.0K
Run Growth: 26.0K
Growth Rate: 50.00%
Updated:December 23 2021
huggingface.co

Total runs: 32.5K
Run Growth: 28.2K
Growth Rate: 86.85%
Updated:April 23 2026
huggingface.co

Total runs: 31.0K
Run Growth: -89.0K
Growth Rate: -287.05%
Updated:May 12 2026
huggingface.co

Total runs: 28.0K
Run Growth: 16.8K
Growth Rate: 59.95%
Updated:April 24 2023
huggingface.co

Total runs: 26.5K
Run Growth: -52.2K
Growth Rate: -196.75%
Updated:August 04 2021