Instructions to use zeromodels/convnext_small_fb_in1k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/convnext_small_fb_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/convnext_small_fb_in1k") - Keras
How to use zeromodels/convnext_small_fb_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/convnext_small_fb_in1k") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,27 +1,30 @@
|
|
| 1 |
-
---
|
| 2 |
-
pipeline_tag: image-classification
|
| 3 |
-
license: apache-2.0
|
| 4 |
-
base_model: timm/convnext_small.fb_in1k
|
| 5 |
-
library_name: kerasformers
|
| 6 |
-
tags:
|
| 7 |
-
- keras
|
| 8 |
-
- kerasformers
|
| 9 |
-
- image-classification
|
| 10 |
-
- convnext
|
| 11 |
-
- jax
|
| 12 |
-
- pytorch
|
| 13 |
-
- tf
|
| 14 |
-
---
|
| 15 |
-
|
| 16 |
-
# convnext_small_fb_in1k
|
| 17 |
-
|
| 18 |
-
Pure-Keras 3 image-classification weight for [kerasformers](https://github.com/IMvision12/KerasFormers), converted from [timm/convnext_small.fb_in1k](https://huggingface.co/timm/convnext_small.fb_in1k).
|
| 19 |
-
|
| 20 |
-
## Usage
|
| 21 |
-
|
| 22 |
-
```python
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pipeline_tag: image-classification
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: timm/convnext_small.fb_in1k
|
| 5 |
+
library_name: kerasformers
|
| 6 |
+
tags:
|
| 7 |
+
- keras
|
| 8 |
+
- kerasformers
|
| 9 |
+
- image-classification
|
| 10 |
+
- convnext
|
| 11 |
+
- jax
|
| 12 |
+
- pytorch
|
| 13 |
+
- tf
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# convnext_small_fb_in1k
|
| 17 |
+
|
| 18 |
+
Pure-Keras 3 image-classification weight for [kerasformers](https://github.com/IMvision12/KerasFormers), converted from [timm/convnext_small.fb_in1k](https://huggingface.co/timm/convnext_small.fb_in1k).
|
| 19 |
+
|
| 20 |
+
## Usage
|
| 21 |
+
|
| 22 |
+
```python
|
| 23 |
+
|
| 24 |
+
from kerasformers.models.convnext import ConvNeXtImageClassify
|
| 25 |
+
|
| 26 |
+
model = ConvNeXtImageClassify.from_weights("convnext_small_fb_in1k")
|
| 27 |
+
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
License: **apache-2.0**, inherited from the upstream source.
|