Instructions to use hkivancoral/hushem_40x_deit_tiny_rms_001_fold1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hkivancoral/hushem_40x_deit_tiny_rms_001_fold1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="hkivancoral/hushem_40x_deit_tiny_rms_001_fold1") 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("hkivancoral/hushem_40x_deit_tiny_rms_001_fold1") model = AutoModelForImageClassification.from_pretrained("hkivancoral/hushem_40x_deit_tiny_rms_001_fold1") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "facebook/deit-tiny-patch16-224", | |
| "architectures": [ | |
| "ViTForImageClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "encoder_stride": 16, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.0, | |
| "hidden_size": 192, | |
| "id2label": { | |
| "0": "01_Normal", | |
| "1": "02_Tapered", | |
| "2": "03_Pyriform", | |
| "3": "04_Amorphous" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 768, | |
| "label2id": { | |
| "01_Normal": "0", | |
| "02_Tapered": "1", | |
| "03_Pyriform": "2", | |
| "04_Amorphous": "3" | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "model_type": "vit", | |
| "num_attention_heads": 3, | |
| "num_channels": 3, | |
| "num_hidden_layers": 12, | |
| "patch_size": 16, | |
| "problem_type": "single_label_classification", | |
| "qkv_bias": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.32.1" | |
| } | |