Instructions to use Tanishrajput/AlexNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Tanishrajput/AlexNet with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://Tanishrajput/AlexNet") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
AlexNet for CIFAR-10
This is a TensorFlow/Keras implementation of the classic AlexNet architecture trained on the CIFAR-10 dataset.
Model Details
- Architecture: AlexNet (adapted for CIFAR-10)
- Dataset: CIFAR-10 (10 classes)
- Framework: TensorFlow/Keras
- Input size: 227x227 RGB images
π Links
- GitHub Repository: CNN Models GitHub Repo
- Streamlit: Link
Usage
from tensorflow import keras
model = keras.models.load_model("path_to_your_downloaded_model")
# or directly from Hugging Face (if hosted as a TensorFlow SavedModel or Keras model)
# Example prediction code:
import numpy as np
from PIL import Image
img = Image.open("path_to_image.jpg").resize((227, 227))
img_array = np.array(img) / 255.0
img_array = np.expand_dims(img_array, axis=0) # batch dimension
preds = model.predict(img_array)
print(preds)
- Downloads last month
- 16
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support