Downloads · 30 days
0
TCLResearchEurope/fbnetv3_g_pruned_52
fbnetv3_g_pruned_52 is a image classification model from TCLResearchEurope. Use it when you need a label for an image. The card lists the license as apache-2.0.
This is a prunned version of the timm/fbnetv3g.ra2in1k model in a toch-dag format.
Downloads · 30 days
0
Access
Public
Updated Dec 7, 2023
Repo size
42.5 MB
Likes
0
Public
Click a slice to open those files.
.pt42.5 MB · 100%
From the Hugging Face model README
This is a prunned version of the timm/fbnetv3_g.ra2_in1k model in a toch-dag format.
This model has roughly 52% of the original model FLOPs with minimal metrics drop.
| Model | KMAPPs* | M Parameters | Accuracy (224x224) | Accuracy (240x240) |
|---|---|---|---|---|
| timm/fbnetv3_g.ra2_in1 (baseline) | 42.75 | 16.6 | 80.61% | 81.32% |
| fbnetv3_g_pruned_52 (ours) | 22.3 (52%) | 10.5 (63%) | 79.2% (↓ 1.41%) | 79.55% (↓ 1.77%) |
*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.
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/fbnetv3_g_pruned_52
and now You are ready to load the model:
import torch_dag
import torch
model = torch_dag.io.load_dag_from_path('./fbnetv3_g_pruned_52')
model.eval()
out = model(torch.ones(1, 3, 224, 224))
print(out.shape)