Instructions to use AkshatSurolia/ConvNeXt-FaceMask-Finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AkshatSurolia/ConvNeXt-FaceMask-Finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="AkshatSurolia/ConvNeXt-FaceMask-Finetuned") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("AkshatSurolia/ConvNeXt-FaceMask-Finetuned") model = AutoModelForImageClassification.from_pretrained("AkshatSurolia/ConvNeXt-FaceMask-Finetuned") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "facebook/convnext-tiny-224", | |
| "architectures": [ | |
| "ConvNextForImageClassification" | |
| ], | |
| "depths": [ | |
| 3, | |
| 3, | |
| 9, | |
| 3 | |
| ], | |
| "drop_path_rate": 0.0, | |
| "hidden_act": "gelu", | |
| "hidden_sizes": [ | |
| 96, | |
| 192, | |
| 384, | |
| 768 | |
| ], | |
| "id2label": { | |
| "0": "No Mask", | |
| "1": "Mask" | |
| }, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "Mask": "1", | |
| "No Mask": "0" | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "layer_scale_init_value": 1e-06, | |
| "model_type": "convnext", | |
| "num_channels": 3, | |
| "num_stages": 4, | |
| "patch_size": 4, | |
| "problem_type": "single_label_classification", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.17.0.dev0" | |
| } | |