Instructions to use zeromodels/efficientformer_l3_snap_dist_in1k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/efficientformer_l3_snap_dist_in1k with ZeroModels:
# pip install -U zeromodels # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" from zeromodels import AutoZModel # AutoZModel reads the repo's model_type and loads the matching class. # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect / # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto). model = AutoZModel.from_weights("zeromodels/efficientformer_l3_snap_dist_in1k") - Keras
How to use zeromodels/efficientformer_l3_snap_dist_in1k 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://zeromodels/efficientformer_l3_snap_dist_in1k") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- README.md +24 -0
- model.weights.h5 +3 -0
README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pipeline_tag: image-classification
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: timm/efficientformer_l3.snap_dist_in1k
|
| 5 |
+
library_name: kerasformers
|
| 6 |
+
tags:
|
| 7 |
+
- keras
|
| 8 |
+
- kerasformers
|
| 9 |
+
- image-classification
|
| 10 |
+
- efficientformer
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# efficientformer_l3_snap_dist_in1k
|
| 14 |
+
|
| 15 |
+
Pure-Keras 3 image-classification weight for [kerasformers](https://github.com/IMvision12/KerasFormers), converted from [timm/efficientformer_l3.snap_dist_in1k](https://huggingface.co/timm/efficientformer_l3.snap_dist_in1k).
|
| 16 |
+
|
| 17 |
+
## Usage
|
| 18 |
+
|
| 19 |
+
```python
|
| 20 |
+
from kerasformers.models.efficientformer import EfficientFormerImageClassify
|
| 21 |
+
model = EfficientFormerImageClassify.from_weights("efficientformer_l3_snap_dist_in1k")
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
License: **apache-2.0**, inherited from the upstream source.
|
model.weights.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d5d7e9260b8095a151b9a3a1215f636e2e6cb720621dbacc36250a39fac7031
|
| 3 |
+
size 126774024
|