Instructions to use Stefaron/trash-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Stefaron/trash-classifier with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://Stefaron/trash-classifier") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -31,5 +31,5 @@ This model is a fine-tuned ResNet50 for classifying trash images into categories
|
|
| 31 |
## How to Use
|
| 32 |
Load the model and use it for inference:
|
| 33 |
```python
|
| 34 |
-
|
| 35 |
-
model =
|
|
|
|
| 31 |
## How to Use
|
| 32 |
Load the model and use it for inference:
|
| 33 |
```python
|
| 34 |
+
import tensorflow as tf
|
| 35 |
+
model = tf.keras.models.load_model("Stefaron/trash-classifier/best_model.keras")
|