Instructions to use defendrite/binary-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use defendrite/binary-classifier with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://defendrite/binary-classifier") - Notebooks
- Google Colab
- Kaggle
Upload initial model weights
Browse files- .gitattributes +1 -0
- binary_classifier.keras +3 -0
- config.json +32 -0
- model.onnx +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ 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 |
+
binary_classifier.keras filter=lfs diff=lfs merge=lfs -text
|
binary_classifier.keras
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58ff2be52137f22a07cf5fee33b1c3a3b90a46f2b7421b1dcff9d0391971e0de
|
| 3 |
+
size 51505190
|
config.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "cats-vs-dogs-classifier",
|
| 3 |
+
"repo_id": "",
|
| 4 |
+
"format": "onnx",
|
| 5 |
+
"input_name": "input",
|
| 6 |
+
"input_shape": [
|
| 7 |
+
1,
|
| 8 |
+
3,
|
| 9 |
+
128,
|
| 10 |
+
128
|
| 11 |
+
],
|
| 12 |
+
"output_name": "output",
|
| 13 |
+
"output_type": "logits",
|
| 14 |
+
"num_classes": 2,
|
| 15 |
+
"labels": [
|
| 16 |
+
"cat",
|
| 17 |
+
"dog"
|
| 18 |
+
],
|
| 19 |
+
"image_size": 128,
|
| 20 |
+
"normalization": {
|
| 21 |
+
"mean": [
|
| 22 |
+
0.485,
|
| 23 |
+
0.456,
|
| 24 |
+
0.406
|
| 25 |
+
],
|
| 26 |
+
"std": [
|
| 27 |
+
0.229,
|
| 28 |
+
0.224,
|
| 29 |
+
0.225
|
| 30 |
+
]
|
| 31 |
+
}
|
| 32 |
+
}
|
model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b4c6761a7abf4f6f5f46d97e4795b29bdbaed1cb508efbcaf6d596d4ba825ab1
|
| 3 |
+
size 17156051
|