Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: keras
|
4 |
+
---
|
5 |
+
# Mobilenet-v2-CIFAR-10 (Teeny-Tiny Castle)
|
6 |
+
|
7 |
+
This model is part of a tutorial tied to the [Teeny-Tiny Castle](https://github.com/Nkluge-correa/TeenyTinyCastle), an open-source repository containing educational tools for AI Ethics and Safety research.
|
8 |
+
|
9 |
+
## How to Use
|
10 |
+
|
11 |
+
```python
|
12 |
+
from transformers import pipeline
|
13 |
+
from datasets import load_dataset
|
14 |
+
from IPython.display import display
|
15 |
+
|
16 |
+
dataset = load_dataset("cifar10", split="test")
|
17 |
+
|
18 |
+
classifier = pipeline("image-classification", model="AiresPucrs/Mobilenet-v2-CIFAR-10")
|
19 |
+
|
20 |
+
display(dataset['img'][5].resize((256, 256)))
|
21 |
+
display(classifier(dataset['img'][5]))
|
22 |
+
|
23 |
+
display(dataset['img'][10].resize((256, 256)))
|
24 |
+
display(classifier(dataset['img'][10]))
|
25 |
+
```
|