Commit
·
caa96b0
1
Parent(s):
fb72706
commit files to HF hub
Browse files- README.md +35 -0
- config.json +61 -0
- preprocessor_config.json +17 -0
- pytorch_model.bin +3 -0
- runs/events.out.tfevents.1644606579.2b2f86c103d6.5209.1 +3 -0
README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- image-classification
|
| 4 |
+
- pytorch
|
| 5 |
+
- huggingpics
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
|
| 9 |
+
model-index:
|
| 10 |
+
- name: swin-age-classifier
|
| 11 |
+
results:
|
| 12 |
+
- task:
|
| 13 |
+
name: Image Classification
|
| 14 |
+
type: image-classification
|
| 15 |
+
metrics:
|
| 16 |
+
- name: Accuracy
|
| 17 |
+
type: accuracy
|
| 18 |
+
value: 0.8100000023841858
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# swin-age-classifier
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
Trained on 40 epochs -
|
| 25 |
+
|
| 26 |
+
Data from: Ai Crowd - Blitz
|
| 27 |
+
ai-blitz-xiii - Age Prediction
|
| 28 |
+
https://www.aicrowd.com/challenges/ai-blitz-xiii/problems/age-prediction/
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
Autogenerated by HuggingPics🤗🖼️
|
| 32 |
+
|
| 33 |
+
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).
|
| 34 |
+
|
| 35 |
+
Report any issues with the demo at the [github repo](https://github.com/nateraw/huggingpics).
|
config.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "microsoft/swin-tiny-patch4-window7-224",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"SwinForImageClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.0,
|
| 7 |
+
"depths": [
|
| 8 |
+
2,
|
| 9 |
+
2,
|
| 10 |
+
6,
|
| 11 |
+
2
|
| 12 |
+
],
|
| 13 |
+
"drop_path_rate": 0.1,
|
| 14 |
+
"embed_dim": 96,
|
| 15 |
+
"hidden_act": "gelu",
|
| 16 |
+
"hidden_dropout_prob": 0.0,
|
| 17 |
+
"id2label": {
|
| 18 |
+
"0": "0-10",
|
| 19 |
+
"1": "10-20",
|
| 20 |
+
"2": "20-30",
|
| 21 |
+
"3": "30-40",
|
| 22 |
+
"4": "40-50",
|
| 23 |
+
"5": "50-60",
|
| 24 |
+
"6": "60-70",
|
| 25 |
+
"7": "70-80",
|
| 26 |
+
"8": "80-90",
|
| 27 |
+
"9": "90-100"
|
| 28 |
+
},
|
| 29 |
+
"image_size": 224,
|
| 30 |
+
"initializer_range": 0.02,
|
| 31 |
+
"label2id": {
|
| 32 |
+
"0-10": "0",
|
| 33 |
+
"10-20": "1",
|
| 34 |
+
"20-30": "2",
|
| 35 |
+
"30-40": "3",
|
| 36 |
+
"40-50": "4",
|
| 37 |
+
"50-60": "5",
|
| 38 |
+
"60-70": "6",
|
| 39 |
+
"70-80": "7",
|
| 40 |
+
"80-90": "8",
|
| 41 |
+
"90-100": "9"
|
| 42 |
+
},
|
| 43 |
+
"layer_norm_eps": 1e-05,
|
| 44 |
+
"mlp_ratio": 4.0,
|
| 45 |
+
"model_type": "swin",
|
| 46 |
+
"num_channels": 3,
|
| 47 |
+
"num_heads": [
|
| 48 |
+
3,
|
| 49 |
+
6,
|
| 50 |
+
12,
|
| 51 |
+
24
|
| 52 |
+
],
|
| 53 |
+
"patch_size": 4,
|
| 54 |
+
"path_norm": true,
|
| 55 |
+
"problem_type": "single_label_classification",
|
| 56 |
+
"qkv_bias": true,
|
| 57 |
+
"torch_dtype": "float32",
|
| 58 |
+
"transformers_version": "4.16.2",
|
| 59 |
+
"use_absolute_embeddings": false,
|
| 60 |
+
"window_size": 7
|
| 61 |
+
}
|
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.485,
|
| 7 |
+
0.456,
|
| 8 |
+
0.406
|
| 9 |
+
],
|
| 10 |
+
"image_std": [
|
| 11 |
+
0.229,
|
| 12 |
+
0.224,
|
| 13 |
+
0.225
|
| 14 |
+
],
|
| 15 |
+
"resample": 3,
|
| 16 |
+
"size": 224
|
| 17 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20fa2372c6ab9518837baaf6bd7edc31bda187374394850c796a3614396b9a15
|
| 3 |
+
size 110430767
|
runs/events.out.tfevents.1644606579.2b2f86c103d6.5209.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:940f1c7571ceb5c5b71a861f04cb0fc06e710b8a9bc1c0a342c7454c61afd212
|
| 3 |
+
size 43191
|