Edit model card

Model Card for resnet50d_pruned_37

This is a prunned version of the timm/resnet50d.a3_in1k model in a toch-dag format.

This model has rougly 37% of the original model FLOPs with minimal metrics drop.

Model KMAPPs* M Parameters Accuracy (224x224)
timm/resnet50d.a3_in1 (baseline) 174 25.6 80.9%
resnet50d_pruned_37 (ours) 63.7 (37%) 10.9 (43%) 78.51% (↓ 2.39%)

*KMAPPs thousands of FLOPs per input pixel

KMAPPs(model) = FLOPs(model) / (H * W * 1000), where (H, W) is the input resolution.

The accuracy was calculated on the ImageNet-1k validation dataset. For details about image pre-processing, please refer to the original repository.

Model Details

Model Description

Model Sources

How to Get Started with the Model

To load the model, You have to install torch-dag library, which can be done using pip by

pip install torch-dag

then, clone this repository

# Make sure you have git-lfs installed (https://git-lfs.com)
git lfs install
git clone https://huggingface.co/TCLResearchEurope/resnet50d_pruned_37

and now You are ready to load the model:

import torch_dag
import torch

model = torch_dag.io.load_dag_from_path('./resnet50d_pruned_37')

model.eval()
out = model(torch.ones(1, 3, 224, 224))
print(out.shape)
Downloads last month
0
Inference API
Drag image file here or click to browse from your device
Unable to determine this model's library. Check the docs .

Dataset used to train TCLResearchEurope/resnet50d_pruned_37