Instructions to use Hayloo9838/uno-recognizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hayloo9838/uno-recognizer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Hayloo9838/uno-recognizer") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Hayloo9838/uno-recognizer") model = AutoModel.from_pretrained("Hayloo9838/uno-recognizer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
-
datasets:
|
| 4 |
-
- Francesco/uno-deck
|
| 5 |
language:
|
| 6 |
- en
|
| 7 |
metrics:
|
|
@@ -69,12 +67,14 @@ pip install torch transformers torchvision
|
|
| 69 |
```
|
| 70 |
Then go to the files of this HF page and simply use model.py in your python scripts, and that is it.
|
| 71 |
The current model.py will get an image from the internet, perform the processing, then make a heatmap of the attention (what the model cares about) and return its guess and confidence.
|
| 72 |
-
On that animated image, it gets a pretty underestimating confidence of 30%, but that is because the dataset is insanely limited and i had to resort to augmentation, which is a game changer.
|
| 73 |
-
|
| 74 |
## Limitations
|
| 75 |
|
| 76 |
- **Limited Dataset:** The model was trained with a small dataset and may not be robust to unseen variations. (56 cards only, but due to augmentation, it is quite robust.)
|
| 77 |
- **Not that good:** It trained for just about 130 epochs (about 5 minutes), but it still isn't enough, since it hasn't seen that many augmentations
|
| 78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
## Conclusion
|
| 80 |
This is a basic attempt at creating an uno card recognizer, and is only made for fun and for learning experience. The model can only recognize one card at a time, and understands wild cards the best because of their ease of style.
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
metrics:
|
|
|
|
| 67 |
```
|
| 68 |
Then go to the files of this HF page and simply use model.py in your python scripts, and that is it.
|
| 69 |
The current model.py will get an image from the internet, perform the processing, then make a heatmap of the attention (what the model cares about) and return its guess and confidence.
|
|
|
|
|
|
|
| 70 |
## Limitations
|
| 71 |
|
| 72 |
- **Limited Dataset:** The model was trained with a small dataset and may not be robust to unseen variations. (56 cards only, but due to augmentation, it is quite robust.)
|
| 73 |
- **Not that good:** It trained for just about 130 epochs (about 5 minutes), but it still isn't enough, since it hasn't seen that many augmentations
|
| 74 |
|
| 75 |
+
Datasets:
|
| 76 |
+
- Natural Images - https://www.kaggle.com/datasets/prasunroy/natural-images - For projecting images onto random backgrounds
|
| 77 |
+
- Uno Cards - https://www.kaggle.com/datasets/vatsalparsaniya/uno-cards - For the cards obviously.
|
| 78 |
+
|
| 79 |
## Conclusion
|
| 80 |
This is a basic attempt at creating an uno card recognizer, and is only made for fun and for learning experience. The model can only recognize one card at a time, and understands wild cards the best because of their ease of style.
|