Image Classification
Transformers
PyTorch
TensorBoard
Safetensors
convnext
vision
Generated from Trainer
Instructions to use davanstrien/convnext-tiny-224-leicester_binary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use davanstrien/convnext-tiny-224-leicester_binary with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="davanstrien/convnext-tiny-224-leicester_binary") 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("davanstrien/convnext-tiny-224-leicester_binary") model = AutoModelForImageClassification.from_pretrained("davanstrien/convnext-tiny-224-leicester_binary", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 759 Bytes
31117f5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | {
"_name_or_path": "facebook/convnext-tiny-224",
"architectures": [
"ConvNextForImageClassification"
],
"depths": [
3,
3,
9,
3
],
"drop_path_rate": 0.0,
"finetuning_task": "image-classification",
"hidden_act": "gelu",
"hidden_sizes": [
96,
192,
384,
768
],
"id2label": {
"0": "other",
"1": "county_trades"
},
"image_size": 224,
"initializer_range": 0.02,
"label2id": {
"county_trades": "1",
"other": "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.26.0.dev0"
}
|