commit files to HF hub
Browse files- .gitattributes +23 -0
- README.md +124 -0
- config.json +74 -0
- images/arctic_char.jpg +3 -0
- images/asp_fish.jpg +3 -0
- images/atlantic_cod.jpg +3 -0
- images/atlantic_halibyt.jpg +3 -0
- images/atlantic_herring.jpg +3 -0
- images/atlantic_mackerel.jpg +3 -0
- images/atlantic_salmon.jpg +3 -0
- images/common_bleak_fish.jpg +3 -0
- images/common_bream.jpg +3 -0
- images/crucian_carp.jpg +3 -0
- images/cuckoo_wrasse_fish.jpg +3 -0
- images/european_plaice.jpg +3 -0
- images/grayling_fish.jpg +3 -0
- images/haddock_fish.jpg +3 -0
- images/perch.jpg +3 -0
- images/pike.jpg +3 -0
- images/pollock_fish.jpg +3 -0
- images/rainbow_trout.jpg +3 -0
- images/roach_fish.jpg +3 -0
- images/tench_fish.jpg +3 -0
- images/trout.jpg +3 -0
- images/white_bream.jpg +3 -0
- images/zander_fish.jpg +3 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- runs/events.out.tfevents.1738303929.f4515fdacbc9.1805.0 +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,26 @@ 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/arctic_char.jpg filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
images/asp_fish.jpg filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
images/atlantic_cod.jpg filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
images/atlantic_halibyt.jpg filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
images/atlantic_herring.jpg filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
images/atlantic_mackerel.jpg filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
images/atlantic_salmon.jpg filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
images/common_bleak_fish.jpg filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
images/common_bream.jpg filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
images/crucian_carp.jpg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
images/cuckoo_wrasse_fish.jpg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
images/european_plaice.jpg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
images/grayling_fish.jpg filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
images/haddock_fish.jpg filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
images/perch.jpg filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
images/pike.jpg filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
images/pollock_fish.jpg filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
images/rainbow_trout.jpg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
images/roach_fish.jpg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
images/tench_fish.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
images/trout.jpg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
images/white_bream.jpg filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
images/zander_fish.jpg filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- image-classification
|
| 4 |
+
- pytorch
|
| 5 |
+
- huggingpics
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
|
| 9 |
+
model-index:
|
| 10 |
+
- name: fish-classification
|
| 11 |
+
results:
|
| 12 |
+
- task:
|
| 13 |
+
name: Image Classification
|
| 14 |
+
type: image-classification
|
| 15 |
+
metrics:
|
| 16 |
+
- name: Accuracy
|
| 17 |
+
type: accuracy
|
| 18 |
+
value: 0.2810077667236328
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# fish-classification
|
| 22 |
+
|
| 23 |
+
|
| 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
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
#### arctic char
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
|
| 38 |
+
#### asp fish
|
| 39 |
+
|
| 40 |
+

|
| 41 |
+
|
| 42 |
+
#### atlantic cod
|
| 43 |
+
|
| 44 |
+

|
| 45 |
+
|
| 46 |
+
#### atlantic halibyt
|
| 47 |
+
|
| 48 |
+

|
| 49 |
+
|
| 50 |
+
#### atlantic herring
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
|
| 54 |
+
#### atlantic mackerel
|
| 55 |
+
|
| 56 |
+

|
| 57 |
+
|
| 58 |
+
#### atlantic salmon
|
| 59 |
+
|
| 60 |
+

|
| 61 |
+
|
| 62 |
+
#### common bleak fish
|
| 63 |
+
|
| 64 |
+

|
| 65 |
+
|
| 66 |
+
#### common bream
|
| 67 |
+
|
| 68 |
+

|
| 69 |
+
|
| 70 |
+
#### crucian carp
|
| 71 |
+
|
| 72 |
+

|
| 73 |
+
|
| 74 |
+
#### cuckoo wrasse fish
|
| 75 |
+
|
| 76 |
+

|
| 77 |
+
|
| 78 |
+
#### european plaice
|
| 79 |
+
|
| 80 |
+

|
| 81 |
+
|
| 82 |
+
#### grayling fish
|
| 83 |
+
|
| 84 |
+

|
| 85 |
+
|
| 86 |
+
#### haddock fish
|
| 87 |
+
|
| 88 |
+

|
| 89 |
+
|
| 90 |
+
#### perch
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
|
| 94 |
+
#### pike
|
| 95 |
+
|
| 96 |
+

|
| 97 |
+
|
| 98 |
+
#### pollock fish
|
| 99 |
+
|
| 100 |
+

|
| 101 |
+
|
| 102 |
+
#### rainbow trout
|
| 103 |
+
|
| 104 |
+

|
| 105 |
+
|
| 106 |
+
#### roach fish
|
| 107 |
+
|
| 108 |
+

|
| 109 |
+
|
| 110 |
+
#### tench fish
|
| 111 |
+
|
| 112 |
+

|
| 113 |
+
|
| 114 |
+
#### trout
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
|
| 118 |
+
#### white bream
|
| 119 |
+
|
| 120 |
+

|
| 121 |
+
|
| 122 |
+
#### zander fish
|
| 123 |
+
|
| 124 |
+

|
config.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": "arctic char",
|
| 13 |
+
"1": "asp fish",
|
| 14 |
+
"10": "cuckoo wrasse fish",
|
| 15 |
+
"11": "european plaice",
|
| 16 |
+
"12": "grayling fish",
|
| 17 |
+
"13": "haddock fish",
|
| 18 |
+
"14": "perch",
|
| 19 |
+
"15": "pike",
|
| 20 |
+
"16": "pollock fish",
|
| 21 |
+
"17": "rainbow trout",
|
| 22 |
+
"18": "roach fish",
|
| 23 |
+
"19": "tench fish",
|
| 24 |
+
"2": "atlantic cod",
|
| 25 |
+
"20": "trout",
|
| 26 |
+
"21": "white bream",
|
| 27 |
+
"22": "zander fish",
|
| 28 |
+
"3": "atlantic halibyt",
|
| 29 |
+
"4": "atlantic herring",
|
| 30 |
+
"5": "atlantic mackerel",
|
| 31 |
+
"6": "atlantic salmon",
|
| 32 |
+
"7": "common bleak fish",
|
| 33 |
+
"8": "common bream",
|
| 34 |
+
"9": "crucian carp"
|
| 35 |
+
},
|
| 36 |
+
"image_size": 224,
|
| 37 |
+
"initializer_range": 0.02,
|
| 38 |
+
"intermediate_size": 3072,
|
| 39 |
+
"label2id": {
|
| 40 |
+
"arctic char": "0",
|
| 41 |
+
"asp fish": "1",
|
| 42 |
+
"atlantic cod": "2",
|
| 43 |
+
"atlantic halibyt": "3",
|
| 44 |
+
"atlantic herring": "4",
|
| 45 |
+
"atlantic mackerel": "5",
|
| 46 |
+
"atlantic salmon": "6",
|
| 47 |
+
"common bleak fish": "7",
|
| 48 |
+
"common bream": "8",
|
| 49 |
+
"crucian carp": "9",
|
| 50 |
+
"cuckoo wrasse fish": "10",
|
| 51 |
+
"european plaice": "11",
|
| 52 |
+
"grayling fish": "12",
|
| 53 |
+
"haddock fish": "13",
|
| 54 |
+
"perch": "14",
|
| 55 |
+
"pike": "15",
|
| 56 |
+
"pollock fish": "16",
|
| 57 |
+
"rainbow trout": "17",
|
| 58 |
+
"roach fish": "18",
|
| 59 |
+
"tench fish": "19",
|
| 60 |
+
"trout": "20",
|
| 61 |
+
"white bream": "21",
|
| 62 |
+
"zander fish": "22"
|
| 63 |
+
},
|
| 64 |
+
"layer_norm_eps": 1e-12,
|
| 65 |
+
"model_type": "vit",
|
| 66 |
+
"num_attention_heads": 12,
|
| 67 |
+
"num_channels": 3,
|
| 68 |
+
"num_hidden_layers": 12,
|
| 69 |
+
"patch_size": 16,
|
| 70 |
+
"problem_type": "single_label_classification",
|
| 71 |
+
"qkv_bias": true,
|
| 72 |
+
"torch_dtype": "float32",
|
| 73 |
+
"transformers_version": "4.47.1"
|
| 74 |
+
}
|
images/arctic_char.jpg
ADDED
|
Git LFS Details
|
images/asp_fish.jpg
ADDED
|
Git LFS Details
|
images/atlantic_cod.jpg
ADDED
|
Git LFS Details
|
images/atlantic_halibyt.jpg
ADDED
|
Git LFS Details
|
images/atlantic_herring.jpg
ADDED
|
Git LFS Details
|
images/atlantic_mackerel.jpg
ADDED
|
Git LFS Details
|
images/atlantic_salmon.jpg
ADDED
|
Git LFS Details
|
images/common_bleak_fish.jpg
ADDED
|
Git LFS Details
|
images/common_bream.jpg
ADDED
|
Git LFS Details
|
images/crucian_carp.jpg
ADDED
|
Git LFS Details
|
images/cuckoo_wrasse_fish.jpg
ADDED
|
Git LFS Details
|
images/european_plaice.jpg
ADDED
|
Git LFS Details
|
images/grayling_fish.jpg
ADDED
|
Git LFS Details
|
images/haddock_fish.jpg
ADDED
|
Git LFS Details
|
images/perch.jpg
ADDED
|
Git LFS Details
|
images/pike.jpg
ADDED
|
Git LFS Details
|
images/pollock_fish.jpg
ADDED
|
Git LFS Details
|
images/rainbow_trout.jpg
ADDED
|
Git LFS Details
|
images/roach_fish.jpg
ADDED
|
Git LFS Details
|
images/tench_fish.jpg
ADDED
|
Git LFS Details
|
images/trout.jpg
ADDED
|
Git LFS Details
|
images/white_bream.jpg
ADDED
|
Git LFS Details
|
images/zander_fish.jpg
ADDED
|
Git LFS Details
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5cca8e4f699f6e72e449bf10b71445a13e68142098471b74a59886d8b06cbf0
|
| 3 |
+
size 343288572
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": null,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_rescale": true,
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.5,
|
| 8 |
+
0.5,
|
| 9 |
+
0.5
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "ViTFeatureExtractor",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.5,
|
| 14 |
+
0.5,
|
| 15 |
+
0.5
|
| 16 |
+
],
|
| 17 |
+
"resample": 2,
|
| 18 |
+
"rescale_factor": 0.00392156862745098,
|
| 19 |
+
"size": {
|
| 20 |
+
"height": 224,
|
| 21 |
+
"width": 224
|
| 22 |
+
}
|
| 23 |
+
}
|
runs/events.out.tfevents.1738303929.f4515fdacbc9.1805.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a97e1d13b746947fd43fde81ebd2d7a9b584d62a6098d5672814e6f3c9ef9f56
|
| 3 |
+
size 3634
|