Views
No views yet
| 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(model) = FLOPs(model) / (H * W * 1000), where (H, W) is the input resolution.pip bypip install torch-dag# Make sure you have git-lfs installed (https://git-lfs.com)
git lfs install
git clone https://huggingface.co/TCLResearchEurope/resnet50d_pruned_37import 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)