Run this model with HF Jobs

Run moyasser20/trash-classifier-models on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/moyasser20/trash-classifier-models. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/moyasser20/trash-classifier-models on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Trash Classifier Models

This repository contains trained models for trash/material classification.

Models Included

  • cnn_model.keras: CNN model for feature extraction
  • svm_model.pkl: SVM classifier
  • knn_model.pkl: KNN classifier
  • scaler.pkl: Feature scaler
  • class_mapping.pkl: Class label mapping
  • config.json: Model configuration

Usage

from huggingface_hub import hf_hub_download
import tensorflow as tf
import pickle

# Download and load CNN model
cnn_path = hf_hub_download(repo_id="moyasser20/trash-classifier-models", filename="cnn_model.keras")
cnn_model = tf.keras.models.load_model(cnn_path)

# Download and load SVM model
svm_path = hf_hub_download(repo_id="moyasser20/trash-classifier-models", filename="svm_model.pkl")
with open(svm_path, 'rb') as f:
    svm_model = pickle.load(f)

# Download other files similarly

Training Details

  • Task: Material/Trash Classification
  • Framework: TensorFlow + Scikit-learn
Downloads last month
34
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support