zalando-datasets/fashion_mnist
Viewer • Updated • 70k • 22k • 67
How to use c2p-cmd/fashion_mnist_tf with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy)
# See https://github.com/keras-team/tf-keras for more details.
from huggingface_hub import from_pretrained_keras
model = from_pretrained_keras("c2p-cmd/fashion_mnist_tf")
How to use c2p-cmd/fashion_mnist_tf with Keras:
# Available backend options are: "jax", "torch", "tensorflow".
import os
os.environ["KERAS_BACKEND"] = "jax"
import keras
model = keras.saving.load_model("hf://c2p-cmd/fashion_mnist_tf")
This is a neural network model trained to classify Fashion-MNIST images into 10 different clothing categories. The model uses a simple feedforward architecture with dense layers and achieves good performance on the Fashion-MNIST benchmark dataset.
The model was evaluated on the Fashion-MNIST test set with the following metrics:
This model is designed for:
import tensorflow as tf
# Load the model
model = tf.keras.models.load_model('fashion_mnist_model.h5')
# Prepare your image (28x28 grayscale, values 0-255)
# image = your_preprocessed_image
# Make prediction
prediction = model.predict(image.reshape(1, 28, 28))
predicted_class = tf.argmax(prediction, axis=1).numpy()[0]
The model was trained with: