You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

E-commerce Classification Model

This model is a fine-tuned version of google/vit-base-patch16-224.

The training and evaluation data consists of product images scraped from e-commerce websites across 50 e-commerce categories. The data was then split into a training set (80%) and a test set (20%). During preprocessing, each image was converted to RGB and resized to 224x224 pixels.

See below to get started:

from transformers import AutoImageProcessor, AutoModelForImageClassification
from PIL import Image

model = AutoModelForImageClassification.from_pretrained("khayreali/vit-base-ecommerce-classification")
processor = AutoImageProcessor.from_pretrained("khayreali/vit-base-ecommerce-classification")

clf = pipeline('image-classification',
               model=model,
               image_processor=processor)
     

test_img = Image.open('IMAGE')
     

result = clf(test_img)

# Top predicted category
print(result[0]['label'])
Downloads last month
-
Safetensors
Model size
85.8M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for khayreali/vit-base-ecommerce-classification

Finetuned
(2058)
this model