commit files to HF hub
Browse files- .gitattributes +18 -0
- README.md +104 -0
- config.json +64 -0
- images/bee.jpg +3 -0
- images/beetle.jpg +3 -0
- images/bird.jpg +3 -0
- images/butterfly.jpg +3 -0
- images/camel.jpg +3 -0
- images/cat.jpg +3 -0
- images/caterpillar.jpg +3 -0
- images/crab.jpg +3 -0
- images/dog.jpg +3 -0
- images/fly.jpg +3 -0
- images/grasshopper.jpg +3 -0
- images/horse.jpg +3 -0
- images/lizard.jpg +3 -0
- images/mosquito.jpg +3 -0
- images/mouse.jpg +3 -0
- images/snake.jpg +3 -0
- images/spider.jpg +3 -0
- images/whale.jpg +3 -0
- preprocessor_config.json +17 -0
- pytorch_model.bin +3 -0
- runs/events.out.tfevents.1669645825.3f8d2665c785 +3 -0
.gitattributes
CHANGED
@@ -32,3 +32,21 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
images/bee.jpg filter=lfs diff=lfs merge=lfs -text
|
36 |
+
images/beetle.jpg filter=lfs diff=lfs merge=lfs -text
|
37 |
+
images/bird.jpg filter=lfs diff=lfs merge=lfs -text
|
38 |
+
images/butterfly.jpg filter=lfs diff=lfs merge=lfs -text
|
39 |
+
images/camel.jpg filter=lfs diff=lfs merge=lfs -text
|
40 |
+
images/cat.jpg filter=lfs diff=lfs merge=lfs -text
|
41 |
+
images/caterpillar.jpg filter=lfs diff=lfs merge=lfs -text
|
42 |
+
images/crab.jpg filter=lfs diff=lfs merge=lfs -text
|
43 |
+
images/dog.jpg filter=lfs diff=lfs merge=lfs -text
|
44 |
+
images/fly.jpg filter=lfs diff=lfs merge=lfs -text
|
45 |
+
images/grasshopper.jpg filter=lfs diff=lfs merge=lfs -text
|
46 |
+
images/horse.jpg filter=lfs diff=lfs merge=lfs -text
|
47 |
+
images/lizard.jpg filter=lfs diff=lfs merge=lfs -text
|
48 |
+
images/mosquito.jpg filter=lfs diff=lfs merge=lfs -text
|
49 |
+
images/mouse.jpg filter=lfs diff=lfs merge=lfs -text
|
50 |
+
images/snake.jpg filter=lfs diff=lfs merge=lfs -text
|
51 |
+
images/spider.jpg filter=lfs diff=lfs merge=lfs -text
|
52 |
+
images/whale.jpg filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- image-classification
|
4 |
+
- pytorch
|
5 |
+
- huggingpics
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
|
9 |
+
model-index:
|
10 |
+
- name: Animal-classifier
|
11 |
+
results:
|
12 |
+
- task:
|
13 |
+
name: Image Classification
|
14 |
+
type: image-classification
|
15 |
+
metrics:
|
16 |
+
- name: Accuracy
|
17 |
+
type: accuracy
|
18 |
+
value: 0.9481481313705444
|
19 |
+
---
|
20 |
+
|
21 |
+
# Animal-classifier
|
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 |
+
#### bee
|
35 |
+
|
36 |
+

|
37 |
+
|
38 |
+
#### beetle
|
39 |
+
|
40 |
+

|
41 |
+
|
42 |
+
#### bird
|
43 |
+
|
44 |
+

|
45 |
+
|
46 |
+
#### butterfly
|
47 |
+
|
48 |
+

|
49 |
+
|
50 |
+
#### camel
|
51 |
+
|
52 |
+

|
53 |
+
|
54 |
+
#### cat
|
55 |
+
|
56 |
+

|
57 |
+
|
58 |
+
#### caterpillar
|
59 |
+
|
60 |
+

|
61 |
+
|
62 |
+
#### crab
|
63 |
+
|
64 |
+

|
65 |
+
|
66 |
+
#### dog
|
67 |
+
|
68 |
+

|
69 |
+
|
70 |
+
#### fly
|
71 |
+
|
72 |
+

|
73 |
+
|
74 |
+
#### grasshopper
|
75 |
+
|
76 |
+

|
77 |
+
|
78 |
+
#### horse
|
79 |
+
|
80 |
+

|
81 |
+
|
82 |
+
#### lizard
|
83 |
+
|
84 |
+

|
85 |
+
|
86 |
+
#### mosquito
|
87 |
+
|
88 |
+

|
89 |
+
|
90 |
+
#### mouse
|
91 |
+
|
92 |
+

|
93 |
+
|
94 |
+
#### snake
|
95 |
+
|
96 |
+

|
97 |
+
|
98 |
+
#### spider
|
99 |
+
|
100 |
+

|
101 |
+
|
102 |
+
#### whale
|
103 |
+
|
104 |
+

|
config.json
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "bee",
|
13 |
+
"1": "beetle",
|
14 |
+
"10": "grasshopper",
|
15 |
+
"11": "horse",
|
16 |
+
"12": "lizard",
|
17 |
+
"13": "mosquito",
|
18 |
+
"14": "mouse",
|
19 |
+
"15": "snake",
|
20 |
+
"16": "spider",
|
21 |
+
"17": "whale",
|
22 |
+
"2": "bird",
|
23 |
+
"3": "butterfly",
|
24 |
+
"4": "camel",
|
25 |
+
"5": "cat",
|
26 |
+
"6": "caterpillar",
|
27 |
+
"7": "crab",
|
28 |
+
"8": "dog",
|
29 |
+
"9": "fly"
|
30 |
+
},
|
31 |
+
"image_size": 224,
|
32 |
+
"initializer_range": 0.02,
|
33 |
+
"intermediate_size": 3072,
|
34 |
+
"label2id": {
|
35 |
+
"bee": "0",
|
36 |
+
"beetle": "1",
|
37 |
+
"bird": "2",
|
38 |
+
"butterfly": "3",
|
39 |
+
"camel": "4",
|
40 |
+
"cat": "5",
|
41 |
+
"caterpillar": "6",
|
42 |
+
"crab": "7",
|
43 |
+
"dog": "8",
|
44 |
+
"fly": "9",
|
45 |
+
"grasshopper": "10",
|
46 |
+
"horse": "11",
|
47 |
+
"lizard": "12",
|
48 |
+
"mosquito": "13",
|
49 |
+
"mouse": "14",
|
50 |
+
"snake": "15",
|
51 |
+
"spider": "16",
|
52 |
+
"whale": "17"
|
53 |
+
},
|
54 |
+
"layer_norm_eps": 1e-12,
|
55 |
+
"model_type": "vit",
|
56 |
+
"num_attention_heads": 12,
|
57 |
+
"num_channels": 3,
|
58 |
+
"num_hidden_layers": 12,
|
59 |
+
"patch_size": 16,
|
60 |
+
"problem_type": "single_label_classification",
|
61 |
+
"qkv_bias": true,
|
62 |
+
"torch_dtype": "float32",
|
63 |
+
"transformers_version": "4.24.0"
|
64 |
+
}
|
images/bee.jpg
ADDED
![]() |
Git LFS Details
|
images/beetle.jpg
ADDED
![]() |
Git LFS Details
|
images/bird.jpg
ADDED
![]() |
Git LFS Details
|
images/butterfly.jpg
ADDED
![]() |
Git LFS Details
|
images/camel.jpg
ADDED
![]() |
Git LFS Details
|
images/cat.jpg
ADDED
![]() |
Git LFS Details
|
images/caterpillar.jpg
ADDED
![]() |
Git LFS Details
|
images/crab.jpg
ADDED
![]() |
Git LFS Details
|
images/dog.jpg
ADDED
![]() |
Git LFS Details
|
images/fly.jpg
ADDED
![]() |
Git LFS Details
|
images/grasshopper.jpg
ADDED
![]() |
Git LFS Details
|
images/horse.jpg
ADDED
![]() |
Git LFS Details
|
images/lizard.jpg
ADDED
![]() |
Git LFS Details
|
images/mosquito.jpg
ADDED
![]() |
Git LFS Details
|
images/mouse.jpg
ADDED
![]() |
Git LFS Details
|
images/snake.jpg
ADDED
![]() |
Git LFS Details
|
images/spider.jpg
ADDED
![]() |
Git LFS Details
|
images/whale.jpg
ADDED
![]() |
Git LFS Details
|
preprocessor_config.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_resize": true,
|
4 |
+
"feature_extractor_type": "ViTFeatureExtractor",
|
5 |
+
"image_mean": [
|
6 |
+
0.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
+
],
|
10 |
+
"image_std": [
|
11 |
+
0.5,
|
12 |
+
0.5,
|
13 |
+
0.5
|
14 |
+
],
|
15 |
+
"resample": 2,
|
16 |
+
"size": 224
|
17 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f12023586c29cf8bdb27af30596ad9e8909eced90b828c7e8b6ed8ce23c81bd9
|
3 |
+
size 343313393
|
runs/events.out.tfevents.1669645825.3f8d2665c785
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a85c9898f3cb3a24d4d2183c3e5b47bb95c547aa0f1004936dd0fcdda07b463e
|
3 |
+
size 2935
|