Image Classification
Keras
TensorFlow
TF-Keras
Transformers
English
resnet
recycling
deeplearning
tftools
Instructions to use sharktide/recyclebot0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use sharktide/recyclebot0 with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://sharktide/recyclebot0") - Transformers
How to use sharktide/recyclebot0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="sharktide/recyclebot0") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import TFAutoModel model = TFAutoModel.from_pretrained("sharktide/recyclebot0", dtype="auto") - TF-Keras
How to use sharktide/recyclebot0 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("sharktide/recyclebot0") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -34,7 +34,7 @@ Then download the model: (You only have to do this once unless you want to updat
|
|
| 34 |
|
| 35 |
```python
|
| 36 |
import tensorflowtools
|
| 37 |
-
tensorflowtools.hftools.download_model_from_huggingface("sharktide", "recyclebot0", "
|
| 38 |
```
|
| 39 |
|
| 40 |
Now, to load the model in code all you have to do is this:
|
|
|
|
| 34 |
|
| 35 |
```python
|
| 36 |
import tensorflowtools
|
| 37 |
+
tensorflowtools.hftools.download_model_from_huggingface("sharktide", "recyclebot0", "tf_model.h5")
|
| 38 |
```
|
| 39 |
|
| 40 |
Now, to load the model in code all you have to do is this:
|