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:
# !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://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")# pip install -U transformers accelerate # Load model directly from transformers import TFAutoModel model = TFAutoModel.from_pretrained("sharktide/recyclebot0", device_map="auto") - TF-Keras
How to use sharktide/recyclebot0 with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy), and from_pretrained_keras was removed in huggingface_hub 1.0. # See https://github.com/keras-team/tf-keras for more details. # !pip install "huggingface_hub<1.0" tf_keras 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
|
@@ -8,9 +8,8 @@ base_model:
|
|
| 8 |
pipeline_tag: image-classification
|
| 9 |
tags:
|
| 10 |
- recycling
|
| 11 |
-
- keras
|
| 12 |
- deeplearning
|
| 13 |
-
|
| 14 |
---
|
| 15 |
|
| 16 |
|
|
|
|
| 8 |
pipeline_tag: image-classification
|
| 9 |
tags:
|
| 10 |
- recycling
|
|
|
|
| 11 |
- deeplearning
|
| 12 |
+
- TF-Keras
|
| 13 |
---
|
| 14 |
|
| 15 |
|