Instructions to use dima806/card_type_image_detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dima806/card_type_image_detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="dima806/card_type_image_detection") 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("dima806/card_type_image_detection") model = AutoModelForImageClassification.from_pretrained("dima806/card_type_image_detection") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "dima806/card_type_image_detection", | |
| "architectures": [ | |
| "ViTForImageClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "encoder_stride": 16, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.0, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "ace of clubs", | |
| "1": "ace of diamonds", | |
| "2": "ace of hearts", | |
| "3": "ace of spades", | |
| "4": "eight of clubs", | |
| "5": "eight of diamonds", | |
| "6": "eight of hearts", | |
| "7": "eight of spades", | |
| "8": "five of clubs", | |
| "9": "five of diamonds", | |
| "10": "five of hearts", | |
| "11": "five of spades", | |
| "12": "four of clubs", | |
| "13": "four of diamonds", | |
| "14": "four of hearts", | |
| "15": "four of spades", | |
| "16": "jack of clubs", | |
| "17": "jack of diamonds", | |
| "18": "jack of hearts", | |
| "19": "jack of spades", | |
| "20": "joker", | |
| "21": "king of clubs", | |
| "22": "king of diamonds", | |
| "23": "king of hearts", | |
| "24": "king of spades", | |
| "25": "nine of clubs", | |
| "26": "nine of diamonds", | |
| "27": "nine of hearts", | |
| "28": "nine of spades", | |
| "29": "queen of clubs", | |
| "30": "queen of diamonds", | |
| "31": "queen of hearts", | |
| "32": "queen of spades", | |
| "33": "seven of clubs", | |
| "34": "seven of diamonds", | |
| "35": "seven of hearts", | |
| "36": "seven of spades", | |
| "37": "six of clubs", | |
| "38": "six of diamonds", | |
| "39": "six of hearts", | |
| "40": "six of spades", | |
| "41": "ten of clubs", | |
| "42": "ten of diamonds", | |
| "43": "ten of hearts", | |
| "44": "ten of spades", | |
| "45": "three of clubs", | |
| "46": "three of diamonds", | |
| "47": "three of hearts", | |
| "48": "three of spades", | |
| "49": "two of clubs", | |
| "50": "two of diamonds", | |
| "51": "two of hearts", | |
| "52": "two of spades" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "ace of clubs": 0, | |
| "ace of diamonds": 1, | |
| "ace of hearts": 2, | |
| "ace of spades": 3, | |
| "eight of clubs": 4, | |
| "eight of diamonds": 5, | |
| "eight of hearts": 6, | |
| "eight of spades": 7, | |
| "five of clubs": 8, | |
| "five of diamonds": 9, | |
| "five of hearts": 10, | |
| "five of spades": 11, | |
| "four of clubs": 12, | |
| "four of diamonds": 13, | |
| "four of hearts": 14, | |
| "four of spades": 15, | |
| "jack of clubs": 16, | |
| "jack of diamonds": 17, | |
| "jack of hearts": 18, | |
| "jack of spades": 19, | |
| "joker": 20, | |
| "king of clubs": 21, | |
| "king of diamonds": 22, | |
| "king of hearts": 23, | |
| "king of spades": 24, | |
| "nine of clubs": 25, | |
| "nine of diamonds": 26, | |
| "nine of hearts": 27, | |
| "nine of spades": 28, | |
| "queen of clubs": 29, | |
| "queen of diamonds": 30, | |
| "queen of hearts": 31, | |
| "queen of spades": 32, | |
| "seven of clubs": 33, | |
| "seven of diamonds": 34, | |
| "seven of hearts": 35, | |
| "seven of spades": 36, | |
| "six of clubs": 37, | |
| "six of diamonds": 38, | |
| "six of hearts": 39, | |
| "six of spades": 40, | |
| "ten of clubs": 41, | |
| "ten of diamonds": 42, | |
| "ten of hearts": 43, | |
| "ten of spades": 44, | |
| "three of clubs": 45, | |
| "three of diamonds": 46, | |
| "three of hearts": 47, | |
| "three of spades": 48, | |
| "two of clubs": 49, | |
| "two of diamonds": 50, | |
| "two of hearts": 51, | |
| "two of spades": 52 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "model_type": "vit", | |
| "num_attention_heads": 12, | |
| "num_channels": 3, | |
| "num_hidden_layers": 12, | |
| "patch_size": 16, | |
| "problem_type": "single_label_classification", | |
| "qkv_bias": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.38.2" | |
| } | |