Instructions to use Zwar2004/Veggies_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Zwar2004/Veggies_model 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://Zwar2004/Veggies_model") - Notebooks
- Google Colab
- Kaggle
Model Name
This model classifies images of various vegetables and fruits.
Model Description
This model was trained using TensorFlow to classify images into categories such as apple, banana, beetroot, etc.
How to Use
You can use this model in your code like this:
from transformers import pipeline
classifier = pipeline("image-classification", model="Veggies_model")
image = "path_to_your_image.jpg"
result = classifier(image)
print(result)
- Downloads last month
- -