pretrainedmodels
Pretrained models for Pytorch
What it is and what it does
Pretrainedmodels is a PyTorch package that wraps pretrained convolutional neural network models trained on ImageNet. It provides a consistent API across many architectures—ResNet, DenseNet, Inception, NASNet, SENet, DualPathNet, Xception, and others—allowing you to load models with weights already initialized from large-scale training. The package exposes model attributes like input size, normalization statistics, and intermediate layer access for transfer learning and feature extraction.
The package was designed to help reproduce research results and enable transfer learning setups by offering a torchvision-like interface. However, it has been abandoned since late 2018 and receives no maintenance. While it may still work for loading older model checkpoints, it is not updated for modern PyTorch conventions or security practices, and model weight URLs may be stale.
Use it for:
- Load a pretrained ResNet or DenseNet for transfer learning on a custom image classification task without retraining from scratch.
- Extract intermediate features from a pretrained model for use in a downstream task like object detection or segmentation.
- Reproduce results from research papers published around 2017–2018 that relied on specific pretrained architectures and their exact weight initializations.
- Access multiple pretrained architectures through a single unified API rather than hunting for individual model implementations.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a unified interface to load pretrained PyTorch convolutional neural networks (ResNet, DenseNet, Inception, NASNet, SENet, and others) with weights initialized from ImageNet training.
No. The package is abandoned, with no updates since 2018-10-29 and no commits since 2022-04-22. Modern PyTorch and torchvision have superseded it with actively maintained model zoos, better API design, and current weight URLs. Install only if you must reproduce a specific 2018-era result or need a model not available elsewhere; otherwise, use torchvision or timm instead.
Install
pretrainedmodels on PyPI
pip
pip install pretrainedmodelsuv
uv add pretrainedmodelspoetry
poetry add pretrainedmodelsInstalling pretrainedmodels
Before you install
High install friction with no runtime dependencies listed but requiring manual setup. Maintenance is abandoned—last release was 2018-10-29, with no commits since 2022-04-22. Use only if you need models from that era and cannot migrate to actively maintained alternatives.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute freely with minimal restrictions. No commercial or proprietary constraints.
Quickstart
pip install pretrainedmodels
import pretrainedmodels
model = pretrainedmodels.resnet50(pretrained=True)
output = model(input_tensor)
Requires PyTorch to be installed separately; no explicit Python version requirement stated in the fact sheet.
Verify before relying
- Whether the package still downloads model weights successfully given the age of the project and potential URL changes.
- Compatibility with modern PyTorch versions beyond what was tested in 2018.
- Whether all listed models remain fully functional without maintenance.
- Current status of model weight URLs and hosting infrastructure.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,846 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 85,116/month — #13,949 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pretrainedmodels-0.7.4.tar.gz
Keywords: pytorch, pretrained, models, deep, learning
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
facenet-pytorchProvides pretrained PyTorch models for face…
permissive · top 15,000 on PyPI
Keras-ApplicationsProvides pre-trained deep learning model…
permissive · top 5,000 on PyPI
pytorchcvProvides a collection of pretrained computer…
unclear · top 15,000 on PyPI
efficientnet-pytorchLoads and runs pretrained EfficientNet image…
permissive · top 15,000 on PyPI
timmTimm provides a large collection of pretrained…
permissive · top 5,000 on PyPI
segmentation-models-pytorchProvides PyTorch-based neural network models…
permissive · top 15,000 on PyPI
torchvisionTorchvision provides pre-built datasets, model…
permissive · top 1,000 on PyPI
efficientnetProvides Keras and TensorFlow Keras…
permissive · top 15,000 on PyPI
face_recognition_modelsProvides pre-trained deep learning models for…
permissive · top 15,000 on PyPI