Instructions to use camstack/camstack-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use camstack/camstack-models with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy) # See https://github.com/keras-team/tf-keras for more details. from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("camstack/camstack-models") - Notebooks
- Google Colab
- Kaggle
Add publicly-distributable animal-classifier (Open Images V7 CC-BY, EfficientNet-Lite0)
Browse files- animalClassification/animal-classifier/coreml/animal-classifier-labels.json +35 -0
- animalClassification/animal-classifier/coreml/animal-classifier.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- animalClassification/animal-classifier/coreml/animal-classifier.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
- animalClassification/animal-classifier/coreml/animal-classifier.mlpackage/Manifest.json +18 -0
animalClassification/animal-classifier/coreml/animal-classifier-labels.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"labels": [
|
| 3 |
+
"bird",
|
| 4 |
+
"cat",
|
| 5 |
+
"cow",
|
| 6 |
+
"deer",
|
| 7 |
+
"dog",
|
| 8 |
+
"horse",
|
| 9 |
+
"sheep",
|
| 10 |
+
"squirrel"
|
| 11 |
+
],
|
| 12 |
+
"input_size": 224,
|
| 13 |
+
"num_classes": 8,
|
| 14 |
+
"preprocess": {
|
| 15 |
+
"normalize": "imagenet",
|
| 16 |
+
"mean": [
|
| 17 |
+
0.485,
|
| 18 |
+
0.456,
|
| 19 |
+
0.406
|
| 20 |
+
],
|
| 21 |
+
"std": [
|
| 22 |
+
0.229,
|
| 23 |
+
0.224,
|
| 24 |
+
0.225
|
| 25 |
+
],
|
| 26 |
+
"channels": "RGB",
|
| 27 |
+
"layout": "NCHW"
|
| 28 |
+
},
|
| 29 |
+
"arch": "efficientnet_lite0",
|
| 30 |
+
"source": "Open Images V7 animal subset (largest-box crops per image), 8 classes; timm ImageNet1K pretrained, full fine-tune",
|
| 31 |
+
"dataset": "Open Images V7 (Google)",
|
| 32 |
+
"license": "dataset: images CC-BY 2.0 + annotations CC-BY 4.0 (permissive, commercial + redistributable with attribution); weights: Apache-2.0 (timm backbone) \u2014 publicly distributable",
|
| 33 |
+
"output": "logits (apply softmax)",
|
| 34 |
+
"best_val_acc": 0.8925
|
| 35 |
+
}
|
animalClassification/animal-classifier/coreml/animal-classifier.mlpackage/Data/com.apple.CoreML/model.mlmodel
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95912ec312745feee0fe82d20b874cfb822bbe040a98c5316988825778b8cd79
|
| 3 |
+
size 80516
|
animalClassification/animal-classifier/coreml/animal-classifier.mlpackage/Data/com.apple.CoreML/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2194acb46c1a957c2db766cce0c6f7c295aafc8ad1983843dcb8bc95eac42a34
|
| 3 |
+
size 6727616
|
animalClassification/animal-classifier/coreml/animal-classifier.mlpackage/Manifest.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"fileFormatVersion": "1.0.0",
|
| 3 |
+
"itemInfoEntries": {
|
| 4 |
+
"4DFA6A89-B2BE-4671-8F09-4AEAC1286F4C": {
|
| 5 |
+
"author": "com.apple.CoreML",
|
| 6 |
+
"description": "CoreML Model Weights",
|
| 7 |
+
"name": "weights",
|
| 8 |
+
"path": "com.apple.CoreML/weights"
|
| 9 |
+
},
|
| 10 |
+
"9612404F-3A7A-443B-929A-2F320F2FFE12": {
|
| 11 |
+
"author": "com.apple.CoreML",
|
| 12 |
+
"description": "CoreML Model Specification",
|
| 13 |
+
"name": "model.mlmodel",
|
| 14 |
+
"path": "com.apple.CoreML/model.mlmodel"
|
| 15 |
+
}
|
| 16 |
+
},
|
| 17 |
+
"rootModelIdentifier": "9612404F-3A7A-443B-929A-2F320F2FFE12"
|
| 18 |
+
}
|