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
| { | |
| "model_type": "resnet50", | |
| "pretrained": true, | |
| "num_classes": 6, | |
| "input_shape": [ | |
| 384, | |
| 384, | |
| 3 | |
| ], | |
| "learning_rate": 0.0001, | |
| "optimizer": "adam", | |
| "loss_function": "cross_entropy" | |
| } |