Instructions to use ZafarLocAI/convnext_checkpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ZafarLocAI/convnext_checkpoints with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ZafarLocAI/convnext_checkpoints") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("ZafarLocAI/convnext_checkpoints") model = AutoModelForImageClassification.from_pretrained("ZafarLocAI/convnext_checkpoints", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download best/config.json from ZafarLocAI/convnext_checkpoints: direct link, hf CLI and curl.
- Browser
- Download file 824 Bytes
-
https://huggingface.co/ZafarLocAI/convnext_checkpoints/resolve/main/best/config.json
- Command line
-
hf download hf://ZafarLocAI/convnext_checkpoints/best/config.json
-
curl -L -o config.json https://huggingface.co/ZafarLocAI/convnext_checkpoints/resolve/main/best/config.json
824 Bytes
| { | |
| "architectures": [ | |
| "ConvNextV2ForImageClassification" | |
| ], | |
| "depths": [ | |
| 3, | |
| 3, | |
| 27, | |
| 3 | |
| ], | |
| "drop_path_rate": 0.0, | |
| "dtype": "float32", | |
| "hidden_act": "gelu", | |
| "hidden_sizes": [ | |
| 192, | |
| 384, | |
| 768, | |
| 1536 | |
| ], | |
| "id2label": { | |
| "0": "civ", | |
| "1": "mil", | |
| "2": "no_aircraft" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "civ": 0, | |
| "mil": 1, | |
| "no_aircraft": 2 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "model_type": "convnextv2", | |
| "num_channels": 3, | |
| "num_stages": 4, | |
| "out_features": [ | |
| "stage4" | |
| ], | |
| "out_indices": [ | |
| 4 | |
| ], | |
| "patch_size": 4, | |
| "problem_type": "single_label_classification", | |
| "stage_names": [ | |
| "stem", | |
| "stage1", | |
| "stage2", | |
| "stage3", | |
| "stage4" | |
| ], | |
| "transformers_version": "5.3.0", | |
| "use_cache": false | |
| } | |