nickmuchi commited on
Commit
5cefa51
1 Parent(s): ba19698

commit files to HF hub

Browse files
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - image-classification
4
+ - pytorch
5
+ - huggingpics
6
+ metrics:
7
+ - accuracy
8
+ widget:
9
+ - src: https://cdn.pixabay.com/photo/2021/09/19/12/19/animal-6637774_1280.jpg
10
+ example_title: Dog
11
+ - src: https://cdn.pixabay.com/photo/2017/02/20/18/03/cat-2083492_1280.jpg
12
+ example_title: Cat
13
+
14
+ model-index:
15
+ - name: vit-finetuned-cats-dogs
16
+ results:
17
+ - task:
18
+ name: Image Classification
19
+ type: image-classification
20
+ metrics:
21
+ - name: Accuracy
22
+ type: accuracy
23
+ value: 0.9971014261245728
24
+ ---
25
+
26
+ # vit-finetuned-cats-dogs
27
+
28
+
29
+ Autogenerated by HuggingPics🤗🖼️
30
+
31
+ 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).
32
+
33
+ Report any issues with the demo at the [github repo](https://github.com/nateraw/huggingpics).
34
+
35
+
36
+ ## Example Images
37
+
38
+
39
+ #### cat
40
+
41
+ ![cat](images/cat.jpg)
42
+
43
+ #### dog
44
+
45
+ ![dog](images/dog.jpg)
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.0,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "cat",
12
+ "1": "dog"
13
+ },
14
+ "image_size": 224,
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
17
+ "label2id": {
18
+ "cat": "0",
19
+ "dog": "1"
20
+ },
21
+ "layer_norm_eps": 1e-12,
22
+ "model_type": "vit",
23
+ "num_attention_heads": 12,
24
+ "num_channels": 3,
25
+ "num_hidden_layers": 12,
26
+ "patch_size": 16,
27
+ "qkv_bias": true,
28
+ "torch_dtype": "float32",
29
+ "transformers_version": "4.16.2"
30
+ }
images/cat.jpg ADDED
images/dog.jpg ADDED
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:f93f5a572a3c40c144d661cd2a4410d19a27689bc1b1ff571f4d2c726d122ac2
3
+ size 343277041
runs/events.out.tfevents.1646139998.86e66fd0b4ed.126.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4aaa4ac22a812b0f3a8b6cea1a03060e34c11ad54936a342a07199a1d9ec841a
3
+ size 3258