Commit
•
43765e8
1
Parent(s):
7e1462a
commit files to HF hub
Browse files- .gitattributes +10 -0
- README.md +72 -0
- config.json +48 -0
- images/cat.jpg +3 -0
- images/cow.jpg +3 -0
- images/dog.jpg +3 -0
- images/dolphin.jpg +3 -0
- images/eagle.jpg +3 -0
- images/giant_panda.jpg +3 -0
- images/horse.jpg +3 -0
- images/monkey.jpg +3 -0
- images/sheep.jpg +3 -0
- images/spider.jpg +3 -0
- preprocessor_config.json +22 -0
- pytorch_model.bin +3 -0
- runs/events.out.tfevents.1690619563.612207602d31.436.0 +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,13 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
images/cat.jpg filter=lfs diff=lfs merge=lfs -text
|
37 |
+
images/cow.jpg filter=lfs diff=lfs merge=lfs -text
|
38 |
+
images/dog.jpg filter=lfs diff=lfs merge=lfs -text
|
39 |
+
images/dolphin.jpg filter=lfs diff=lfs merge=lfs -text
|
40 |
+
images/eagle.jpg filter=lfs diff=lfs merge=lfs -text
|
41 |
+
images/giant_panda.jpg filter=lfs diff=lfs merge=lfs -text
|
42 |
+
images/horse.jpg filter=lfs diff=lfs merge=lfs -text
|
43 |
+
images/monkey.jpg filter=lfs diff=lfs merge=lfs -text
|
44 |
+
images/sheep.jpg filter=lfs diff=lfs merge=lfs -text
|
45 |
+
images/spider.jpg filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- image-classification
|
4 |
+
- pytorch
|
5 |
+
- huggingpics
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
|
9 |
+
model-index:
|
10 |
+
- name: 10-animals-classification
|
11 |
+
results:
|
12 |
+
- task:
|
13 |
+
name: Image Classification
|
14 |
+
type: image-classification
|
15 |
+
metrics:
|
16 |
+
- name: Accuracy
|
17 |
+
type: accuracy
|
18 |
+
value: 0.9911110997200012
|
19 |
+
---
|
20 |
+
|
21 |
+
# 10-animals-classification
|
22 |
+
|
23 |
+
|
24 |
+
Autogenerated by HuggingPics🤗🖼️
|
25 |
+
|
26 |
+
Create your own image classifier for **anything** by running [the demo on Google Colab](https://colab.research.google.com/github/nateraw/huggingpics/blob/main/HuggingPics.ipynb).
|
27 |
+
|
28 |
+
Report any issues with the demo at the [github repo](https://github.com/nateraw/huggingpics).
|
29 |
+
|
30 |
+
|
31 |
+
## Example Images
|
32 |
+
|
33 |
+
|
34 |
+
#### cat
|
35 |
+
|
36 |
+
![cat](images/cat.jpg)
|
37 |
+
|
38 |
+
#### cow
|
39 |
+
|
40 |
+
![cow](images/cow.jpg)
|
41 |
+
|
42 |
+
#### dog
|
43 |
+
|
44 |
+
![dog](images/dog.jpg)
|
45 |
+
|
46 |
+
#### dolphin
|
47 |
+
|
48 |
+
![dolphin](images/dolphin.jpg)
|
49 |
+
|
50 |
+
#### eagle
|
51 |
+
|
52 |
+
![eagle](images/eagle.jpg)
|
53 |
+
|
54 |
+
#### giant panda
|
55 |
+
|
56 |
+
![giant panda](images/giant_panda.jpg)
|
57 |
+
|
58 |
+
#### horse
|
59 |
+
|
60 |
+
![horse](images/horse.jpg)
|
61 |
+
|
62 |
+
#### monkey
|
63 |
+
|
64 |
+
![monkey](images/monkey.jpg)
|
65 |
+
|
66 |
+
#### sheep
|
67 |
+
|
68 |
+
![sheep](images/sheep.jpg)
|
69 |
+
|
70 |
+
#### spider
|
71 |
+
|
72 |
+
![spider](images/spider.jpg)
|
config.json
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "cat",
|
13 |
+
"1": "cow",
|
14 |
+
"2": "dog",
|
15 |
+
"3": "dolphin",
|
16 |
+
"4": "eagle",
|
17 |
+
"5": "giant panda",
|
18 |
+
"6": "horse",
|
19 |
+
"7": "monkey",
|
20 |
+
"8": "sheep",
|
21 |
+
"9": "spider"
|
22 |
+
},
|
23 |
+
"image_size": 224,
|
24 |
+
"initializer_range": 0.02,
|
25 |
+
"intermediate_size": 3072,
|
26 |
+
"label2id": {
|
27 |
+
"cat": "0",
|
28 |
+
"cow": "1",
|
29 |
+
"dog": "2",
|
30 |
+
"dolphin": "3",
|
31 |
+
"eagle": "4",
|
32 |
+
"giant panda": "5",
|
33 |
+
"horse": "6",
|
34 |
+
"monkey": "7",
|
35 |
+
"sheep": "8",
|
36 |
+
"spider": "9"
|
37 |
+
},
|
38 |
+
"layer_norm_eps": 1e-12,
|
39 |
+
"model_type": "vit",
|
40 |
+
"num_attention_heads": 12,
|
41 |
+
"num_channels": 3,
|
42 |
+
"num_hidden_layers": 12,
|
43 |
+
"patch_size": 16,
|
44 |
+
"problem_type": "single_label_classification",
|
45 |
+
"qkv_bias": true,
|
46 |
+
"torch_dtype": "float32",
|
47 |
+
"transformers_version": "4.31.0"
|
48 |
+
}
|
images/cat.jpg
ADDED
![]() |
Git LFS Details
|
images/cow.jpg
ADDED
![]() |
Git LFS Details
|
images/dog.jpg
ADDED
![]() |
Git LFS Details
|
images/dolphin.jpg
ADDED
![]() |
Git LFS Details
|
images/eagle.jpg
ADDED
![]() |
Git LFS Details
|
images/giant_panda.jpg
ADDED
![]() |
Git LFS Details
|
images/horse.jpg
ADDED
![]() |
Git LFS Details
|
images/monkey.jpg
ADDED
![]() |
Git LFS Details
|
images/sheep.jpg
ADDED
![]() |
Git LFS Details
|
images/spider.jpg
ADDED
![]() |
Git LFS Details
|
preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"image_mean": [
|
6 |
+
0.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
+
],
|
10 |
+
"image_processor_type": "ViTFeatureExtractor",
|
11 |
+
"image_std": [
|
12 |
+
0.5,
|
13 |
+
0.5,
|
14 |
+
0.5
|
15 |
+
],
|
16 |
+
"resample": 2,
|
17 |
+
"rescale_factor": 0.00392156862745098,
|
18 |
+
"size": {
|
19 |
+
"height": 224,
|
20 |
+
"width": 224
|
21 |
+
}
|
22 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:70ab07b0d7f0cf16baa61f00743ec7bc75ab203477efe534a83fe579dfeef4a9
|
3 |
+
size 343290541
|
runs/events.out.tfevents.1690619563.612207602d31.436.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cf471dec6d3234c199879ef13dfc10fb1fb0ed7805aacfdfe71d0fe5f46ea89d
|
3 |
+
size 2053
|