Instructions to use raphael0202/amenity-website-images with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use raphael0202/amenity-website-images with ultralytics:
# Couldn't find a valid YOLO version tag. # Replace XX with the correct version. from ultralytics import YOLOvXX model = YOLOvXX.from_pretrained("raphael0202/amenity-website-images") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Amenity website image classifier
This image classification model can be used to classify images crawled from amenity websites into a fixed set of categories:
amenity_inside(ID:0): photos of the inside of the amenity, possibly with persons displayedamenity_outside(ID:1): photos of the outside of the amenity: can be possibly be a photo of the facade of the amenity.food_and_drink(ID:2): photos of the food or drinks that are served in the amenity (mostly for restaurants/cafe/hotels)other(ID:3): all other images, including icons, logos,...
The model was fine-tuned using the Ultralytics YOLO library.
Model Details
Model Description
- Developed by: Raphaël Bournhonesque
- Model type: image classification
- License: agpl-3.0
- Finetuned from model [optional]: yolov8n-cls.pt
Training Details
Training Data
The model was fine-tuned using the following dataset: raphael0202/amenity-website-images (revision: main).
As the dataset contains mostly images crawled from websites of restaurants and coffee shop, the model may exhibit lower accuracy on other types of amenities.
Training Procedure
Dependency versions:
- ultralytics: 8.4.14
- pytorch: 2.9.0+cu128
Training Hyperparameters
- Epochs: 100
- Batch size: 16
- Image size: 640
Evaluation
The following evaluation metrics were obtained after training the model:
metrics/accuracy_top1: 0.90183025598526
metrics/accuracy_top5: 1.0
fitness: 0.95091512799263
Evaluation on exported models
The model was also evaluated after exporting to ONNX format. The following metrics were obtained:
ONNX export
metrics/accuracy_top1: 0.90183025598526
metrics/accuracy_top5: 1.0
fitness: 0.95091512799263
Files
Most files stored on the repo are standard files created during training with the Ultralytics YOLO library.
What was added:
- an ONNX export of the trained model (best model), stored in
weights/model.onnx. - a Parquet file containing predictions on the full dataset, stored in
predictions.parquet. - metrics JSON files for each exported model format, stored in
metrics_*.json:metrics.json: metrics for the original PyTorch modelmetrics_onnx.json: metrics for the ONNX exported model
- Downloads last month
- 94