CoolFace
Modelpublic

TCLResearchEurope/convnetxtv2_nano_pruned_19

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
0likes
Model Card

Model Card for convnetxtv2nanopruned_19

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

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

ModelKMAPPs*M ParametersAccuracy (224x224)
timm/convnextv2_nano.fcmae_ft_in22k_in1 (baseline)97.915.681.97%
convnetxtv2_nano_pruned_19 (ours)18.6 (19%)3.8 (24%)75.31% (↓ 6.66%)

\*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/convnetxtv2_nano_pruned_19

and now You are ready to load the model:

import torch_dag
import torch

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

model.eval()
out = model(torch.ones(1, 3, 224, 224))
print(out.shape)