/ Модель

Характеристики

Параметры
113 млн
Архитектура
vit · dense
Опубликована
23 апр 2022

garbage-classification

Классификация изображенийИзображение → label3 профессии

Классификатор на базе ViT определяет по изображению один из шести типов отходов для помощи в их сортировке.

275скачиваний за 30 дней11лайковвеса обновлены25 апр 2022

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Модель yangy50/garbage-classification — классификатор изображений для сортировки бытовых отходов, разработанный автором репозитория на основе Vision Transformer (ViT) и обученный с PyTorch. Она относит изображение к одному из шести классов: картон, стекло, металл, бумага, пластик или прочий мусор.

Модель содержит 113,2 млн параметров. По README, обучение проходило 10 эпох с оптимизатором Adam на наборе из 2467 изображений; автор сообщает точность 95% на тестовой выборке. Это узкая модель для классификации фотографий отходов, а не универсальный классификатор. Лицензия в предоставленных данных не указана.

Сценарии применения

  • распознавание картона на фотографии отходов
  • определение стеклянных отходов по изображению
  • классификация металлического мусора
  • различение бумаги и картона для сортировки
  • распознавание пластиковых отходов
  • классификация прочего мусора

Ограничения

Модель ограничена шестью классами отходов из обучающего набора и может ошибаться на изображениях, отличающихся от его примеров; заявленные 95% точности относятся к тестовой выборке автора. Размер набора небольшой — 2467 изображений.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Garbage Classification

Overview

Backgroud

Garbage classification refers to the separation of several types of different categories in accordance with the environmental impact of the use of the value of the composition of garbage components and the requirements of existing treatment methods.

The significance of garbage classification:

  1. Garbage classification reduces the mutual pollution between different garbage, which is beneficial to the recycling of materials.
  2. Garbage classification is conducive to reducing the final waste disposal volume.
  3. Garbage classification is conducive to enhancing the degree of social civilization.

Dataset

The garbage classification dataset is from Kaggle. There are totally 2467 pictures in this dataset. And this model is an image classification model for this dataset. There are 6 classes for this dataset, which are cardboard (393), glass (491), metal (400), paper(584), plastic (472), and trash(127).

Model

The model is based on the ViT model, which is short for the Vision Transformer. It was introduced in the paper An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale, which was introduced in June 2021 by a team of researchers at Google Brain. And first released in this repository. I trained this model with PyTorch. I think the most different thing between using the transformer to train on an image and on a text is in the tokenizing step.

There are 3 steps to tokenize the image:

  1. Split an image into a grid of sub-image patches
  2. Embed each patch with a linear projection
  3. Each embedded patch becomes a token, and the resulting sequence of embedded patches is the sequence you pass to the model.

I trained the model with 10 epochs, and I use Adam as the optimizer. The accuracy on the test set is 95%.

Huggingface Space

Huggingface space is here.

Huggingface Model Card

Huggingface model card is here.

Critical Analysis

  1. Next step: build a CNN model on this dataset and compare the accuracy and training time for these two models.

  2. Didn’t use the Dataset package to store the image data. Want to find out how to use the Dataset package to handle image data.

Resource Links

vit-base-patch16-224-in21k

Garbage dataset

An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale

Code Demo

Code Demo is inside this repo

Repo

In this repo

Video Recording

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · image-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
ViTForImageClassification
Ревизия весов
9bfbbce

0 моделей