dvk65/TrashTypes
Viewer • Updated • 14.7k • 26
How to use dvk65/trash-classifier-resnet50 with Keras:
# Available backend options are: "jax", "torch", "tensorflow".
import os
os.environ["KERAS_BACKEND"] = "jax"
import keras
model = keras.saving.load_model("hf://dvk65/trash-classifier-resnet50")
This model is trained on a curated dataset of most frequently seen trash items in our college.
Processed training, validation, and test splits are included in the *_processed directories.
Original dataset: dvk65/TrashTypes
from huggingface_hub import hf_hub_download
import tensorflow as tf # tensorflow version above 2.20.0
REPO_ID = "dvk65/trash-classifier-resnet50"
FILENAME = "trashclassify_13.keras"
model_path = hf_hub_download(
repo_id=REPO_ID,
filename=FILENAME,
)
model = tf.keras.models.load_model(model_path)
The current target values are:
To help with expanding the dataset, feel free to contribute to: https://huggingface.co/datasets/dvk65/TrashTypes
Base model
microsoft/resnet-50