Commit
·
1addfa2
1
Parent(s):
9aa32ca
commit files to HF hub
Browse files- .gitattributes +12 -0
- README.md +31 -0
- config.json +52 -0
- images/balcony.jpg +3 -0
- images/bathroom.jpg +3 -0
- images/bedroom.jpg +3 -0
- images/corridor.jpg +3 -0
- images/dining_room.jpg +3 -0
- images/empty_room.jpg +3 -0
- images/garage.jpg +3 -0
- images/kitchen.jpg +3 -0
- images/living_room.jpg +3 -0
- images/office.jpg +3 -0
- images/terrace.jpg +3 -0
- images/yard.jpg +3 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/events.out.tfevents.1701446946.4adc06e0cac0.163.0 +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,15 @@ 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/balcony.jpg filter=lfs diff=lfs merge=lfs -text
|
37 |
+
images/bathroom.jpg filter=lfs diff=lfs merge=lfs -text
|
38 |
+
images/bedroom.jpg filter=lfs diff=lfs merge=lfs -text
|
39 |
+
images/corridor.jpg filter=lfs diff=lfs merge=lfs -text
|
40 |
+
images/dining_room.jpg filter=lfs diff=lfs merge=lfs -text
|
41 |
+
images/empty_room.jpg filter=lfs diff=lfs merge=lfs -text
|
42 |
+
images/garage.jpg filter=lfs diff=lfs merge=lfs -text
|
43 |
+
images/kitchen.jpg filter=lfs diff=lfs merge=lfs -text
|
44 |
+
images/living_room.jpg filter=lfs diff=lfs merge=lfs -text
|
45 |
+
images/office.jpg filter=lfs diff=lfs merge=lfs -text
|
46 |
+
images/terrace.jpg filter=lfs diff=lfs merge=lfs -text
|
47 |
+
images/yard.jpg filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- image-classification
|
4 |
+
- pytorch
|
5 |
+
- huggingpics
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
|
9 |
+
model-index:
|
10 |
+
- name: Label-Room
|
11 |
+
results:
|
12 |
+
- task:
|
13 |
+
name: Image Classification
|
14 |
+
type: image-classification
|
15 |
+
metrics:
|
16 |
+
- name: Accuracy
|
17 |
+
type: accuracy
|
18 |
+
value: 0.7336244583129883
|
19 |
+
---
|
20 |
+
|
21 |
+
# Label-Room
|
22 |
+
|
23 |
+
Test on room classification with 12 Labels : kitchen, bathroom, living room, dining room, bedroom, empty room, balcony, terrace, yard, garage, office, corridor."
|
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
|
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "balcony",
|
13 |
+
"1": "bathroom",
|
14 |
+
"10": "terrace",
|
15 |
+
"11": "yard",
|
16 |
+
"2": "bedroom",
|
17 |
+
"3": "corridor",
|
18 |
+
"4": "dining room",
|
19 |
+
"5": "empty room",
|
20 |
+
"6": "garage",
|
21 |
+
"7": "kitchen",
|
22 |
+
"8": "living room",
|
23 |
+
"9": "office"
|
24 |
+
},
|
25 |
+
"image_size": 224,
|
26 |
+
"initializer_range": 0.02,
|
27 |
+
"intermediate_size": 3072,
|
28 |
+
"label2id": {
|
29 |
+
"balcony": "0",
|
30 |
+
"bathroom": "1",
|
31 |
+
"bedroom": "2",
|
32 |
+
"corridor": "3",
|
33 |
+
"dining room": "4",
|
34 |
+
"empty room": "5",
|
35 |
+
"garage": "6",
|
36 |
+
"kitchen": "7",
|
37 |
+
"living room": "8",
|
38 |
+
"office": "9",
|
39 |
+
"terrace": "10",
|
40 |
+
"yard": "11"
|
41 |
+
},
|
42 |
+
"layer_norm_eps": 1e-12,
|
43 |
+
"model_type": "vit",
|
44 |
+
"num_attention_heads": 12,
|
45 |
+
"num_channels": 3,
|
46 |
+
"num_hidden_layers": 12,
|
47 |
+
"patch_size": 16,
|
48 |
+
"problem_type": "single_label_classification",
|
49 |
+
"qkv_bias": true,
|
50 |
+
"torch_dtype": "float32",
|
51 |
+
"transformers_version": "4.35.2"
|
52 |
+
}
|
images/balcony.jpg
ADDED
![]() |
Git LFS Details
|
images/bathroom.jpg
ADDED
![]() |
Git LFS Details
|
images/bedroom.jpg
ADDED
![]() |
Git LFS Details
|
images/corridor.jpg
ADDED
![]() |
Git LFS Details
|
images/dining_room.jpg
ADDED
![]() |
Git LFS Details
|
images/empty_room.jpg
ADDED
![]() |
Git LFS Details
|
images/garage.jpg
ADDED
![]() |
Git LFS Details
|
images/kitchen.jpg
ADDED
![]() |
Git LFS Details
|
images/living_room.jpg
ADDED
![]() |
Git LFS Details
|
images/office.jpg
ADDED
![]() |
Git LFS Details
|
images/terrace.jpg
ADDED
![]() |
Git LFS Details
|
images/yard.jpg
ADDED
![]() |
Git LFS Details
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6d81593d8ce227f4869c7165084f2009d671f69ac7f961df6b394cbce3044602
|
3 |
+
size 343254736
|
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 |
+
}
|
runs/events.out.tfevents.1701446946.4adc06e0cac0.163.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9dfd0327559904816afc543af9d0f853e2ee5637520dc3226ddf0510ce18176d
|
3 |
+
size 2146
|