commit files to HF hub
Browse files- .gitattributes +2 -0
- README.md +39 -0
- config.json +39 -0
- images/image1.jpg +3 -0
- images/image2.jpg +3 -0
- preprocessor_config.json +18 -0
- pytorch_model.bin +3 -0
- runs/events.out.tfevents.1655820660.ef9c7542e16c.73.7 +3 -0
.gitattributes
CHANGED
|
@@ -25,3 +25,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 26 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
| 27 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 26 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
| 27 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
images/image1.jpg filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
images/image2.jpg filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- image-classification
|
| 4 |
+
- pytorch
|
| 5 |
+
- huggingpics
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
|
| 9 |
+
model-index:
|
| 10 |
+
- name: dog-food-convnext-tiny-224
|
| 11 |
+
results:
|
| 12 |
+
- task:
|
| 13 |
+
name: Image Classification
|
| 14 |
+
type: image-classification
|
| 15 |
+
metrics:
|
| 16 |
+
- name: Accuracy
|
| 17 |
+
type: accuracy
|
| 18 |
+
value: 1.0
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# dog-food-convnext-tiny-224
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
This model was trained on the `train` split of the [Dogs vs Food](https://huggingface.co/datasets/sasha/dog-food) dataset -- try training your own using the
|
| 25 |
+
[the demo on Google Colab](https://colab.research.google.com/github/nateraw/huggingpics/blob/main/HuggingPics.ipynb)!
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
## Example Images
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
#### dog
|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
|
| 37 |
+
#### food
|
| 38 |
+
|
| 39 |
+

|
config.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "facebook/convnext-tiny-224",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"ConvNextForImageClassification"
|
| 5 |
+
],
|
| 6 |
+
"depths": [
|
| 7 |
+
3,
|
| 8 |
+
3,
|
| 9 |
+
9,
|
| 10 |
+
3
|
| 11 |
+
],
|
| 12 |
+
"drop_path_rate": 0.0,
|
| 13 |
+
"hidden_act": "gelu",
|
| 14 |
+
"hidden_sizes": [
|
| 15 |
+
96,
|
| 16 |
+
192,
|
| 17 |
+
384,
|
| 18 |
+
768
|
| 19 |
+
],
|
| 20 |
+
"id2label": {
|
| 21 |
+
"0": "dog",
|
| 22 |
+
"1": "food"
|
| 23 |
+
},
|
| 24 |
+
"image_size": 224,
|
| 25 |
+
"initializer_range": 0.02,
|
| 26 |
+
"label2id": {
|
| 27 |
+
"dog": "0",
|
| 28 |
+
"food": "1"
|
| 29 |
+
},
|
| 30 |
+
"layer_norm_eps": 1e-12,
|
| 31 |
+
"layer_scale_init_value": 1e-06,
|
| 32 |
+
"model_type": "convnext",
|
| 33 |
+
"num_channels": 3,
|
| 34 |
+
"num_stages": 4,
|
| 35 |
+
"patch_size": 4,
|
| 36 |
+
"problem_type": "single_label_classification",
|
| 37 |
+
"torch_dtype": "float32",
|
| 38 |
+
"transformers_version": "4.20.0"
|
| 39 |
+
}
|
images/image1.jpg
ADDED
|
Git LFS Details
|
images/image2.jpg
ADDED
|
Git LFS Details
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_pct": 0.875,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_resize": true,
|
| 5 |
+
"feature_extractor_type": "ConvNextFeatureExtractor",
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.485,
|
| 8 |
+
0.456,
|
| 9 |
+
0.406
|
| 10 |
+
],
|
| 11 |
+
"image_std": [
|
| 12 |
+
0.229,
|
| 13 |
+
0.224,
|
| 14 |
+
0.225
|
| 15 |
+
],
|
| 16 |
+
"resample": 3,
|
| 17 |
+
"size": 224
|
| 18 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0d5882fdf50c4bf03c39ec64d88e9534c847a8b01e5923fc7fd87d592b1449f
|
| 3 |
+
size 111344789
|
runs/events.out.tfevents.1655820660.ef9c7542e16c.73.7
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a702180a378372be79a51e62086b897251ee67aaff7b786d08e4a61031febffd
|
| 3 |
+
size 2842
|