Image Classification
Transformers
PyTorch
TensorBoard
Safetensors
vit
huggingpics
Eval Results (legacy)
Instructions to use sgdkn/gender-classification-hp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sgdkn/gender-classification-hp with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="sgdkn/gender-classification-hp") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("sgdkn/gender-classification-hp") model = AutoModelForImageClassification.from_pretrained("sgdkn/gender-classification-hp") - Notebooks
- Google Colab
- Kaggle
Upload 3 files
Browse files- config.json +6 -6
- pytorch_model.bin +1 -1
config.json
CHANGED
|
@@ -9,17 +9,17 @@
|
|
| 9 |
"hidden_dropout_prob": 0.0,
|
| 10 |
"hidden_size": 768,
|
| 11 |
"id2label": {
|
| 12 |
-
"0": "
|
| 13 |
-
"1": "
|
| 14 |
-
"2": "
|
| 15 |
},
|
| 16 |
"image_size": 224,
|
| 17 |
"initializer_range": 0.02,
|
| 18 |
"intermediate_size": 3072,
|
| 19 |
"label2id": {
|
| 20 |
-
"
|
| 21 |
-
"
|
| 22 |
-
"
|
| 23 |
},
|
| 24 |
"layer_norm_eps": 1e-12,
|
| 25 |
"model_type": "vit",
|
|
|
|
| 9 |
"hidden_dropout_prob": 0.0,
|
| 10 |
"hidden_size": 768,
|
| 11 |
"id2label": {
|
| 12 |
+
"0": "child",
|
| 13 |
+
"1": "female",
|
| 14 |
+
"2": "male"
|
| 15 |
},
|
| 16 |
"image_size": 224,
|
| 17 |
"initializer_range": 0.02,
|
| 18 |
"intermediate_size": 3072,
|
| 19 |
"label2id": {
|
| 20 |
+
"child": "0",
|
| 21 |
+
"female": "1",
|
| 22 |
+
"male": "2"
|
| 23 |
},
|
| 24 |
"layer_norm_eps": 1e-12,
|
| 25 |
"model_type": "vit",
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343269037
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c3e9b748c99f718a6bf64c589f9573949aceaee4b7d593d55b0ec7712509d9e
|
| 3 |
size 343269037
|